-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/03/2016 08:07 AM, Jason Madden wrote:
As far as I can see (but I'm not a doctest expert), these functions aren't monkey-patched in this test the way that time.time, at least, is patched in, say, src/ZODB/DemoStorage.test (below). Perhaps they should be? I can open a copy-and-paste PR to do so.
.. We need to mess with time to prevent spurious test failures on windows
now = 1231019584.0 def faux_time_time(): ... global now ... now += .1 ... return now import time real_time_time = time.time if isinstance(time,type): ... time.time = staticmethod(faux_time_time) # Jython ... else: ... time.time = faux_time_time
Hmm, that looks like it could work -- when I looked at the test yesterday, I wondered if there were a race condition going on due to load on the machine. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJXAQutAAoJEPKpaDSJE9HYmp4P/0oEzS5m7rfvZ3aAXTgEz2hM Dc0N6s0xLO8xmKohgxKQssb71kj0wjfCuOwgjGCTAOcwc/4aaIymv1PcSPoywZSE FJyFs6tWxkn7hsbuZqKoPD4AoUGHhO/lgPkbXGnK2vs+3mRDv4on8pi1/Aghm2Xw HkDnMEK8dlvsoWbtEp9jvj/1hnD5ArR44aMy0KT9dYtfnZ2TmoFQJ/L7glCVuRzu Llb4nSrctabapqf4g+oDHC1zAuGeaBW/Zlwd5qV14Bt7FbMsJ5rOCgj9tmFNsSMt s9FAtc34V0BRq8SUXixoWXFH7umO73KwPtb3wnlKze/ioN/JEin84DIpcnPUFO/A teC47MGePPkh4BiaSpxqzq5I9PUH7XyUVibyO3A3RykJlO4jBErym9goYfy/iuZa RhF7OWY4ZdMr0x9YiGpttCU0HUR6xifZYrvDA0uuGE216urG19cFYdzJRwfj3Ttp bu+PZBk+AFMQPRQp4rnRnMkLWZd2iOT52NOBDJ79q6ov8GJer2VXG8aHvAVffaXq ZH0MvCAZV+2C58hWgiWMDysg5GhOpADCscMIsI8yhv3fUEa2bGucfor2yZpj/tJk rhTeRXQ0mkepivkFnKHDv7KpDdxGBrwUcpFyFAVTZjUhnEL1uZn8jCHsnuoJpRsh lh7wUYIxVFdqenLQ2wxi =4Ng0 -----END PGP SIGNATURE-----