Roundup Tracker - Issues

Message6482

Author joseph_myers
Recipients joseph_myers, rouilj
Date 2019-05-24.20:25:26
Message-id <alpine.DEB.2.21.1905242023010.371@digraph.polyomino.org.uk>
In-reply-to <1558659776.74.0.738274938549.issue2551033@roundup.psfhosted.org>
I think that looks OK, but the test should have everything that uses the 
patched date.Date inside a

date.Date = dummyDate()
try:
    ... rest of test contents ...
finally:
    date.Date = originalDate

to ensure that the patching is undone if an exception occurs during the 
test code.  (Once we can assume Python 3, unittest.mock.patch can be used 
for this.)
History
Date User Action Args
2019-05-24 20:25:26joseph_myerssetrecipients: + joseph_myers, rouilj
2019-05-24 20:25:26joseph_myerslinkissue2551033 messages
2019-05-24 20:25:26joseph_myerscreate