(original) (raw)
changeset: 74587:fb0f4fe8123e user: Victor Stinner victor.stinner@haypocalc.com date: Mon Jan 23 23:48:41 2012 +0100 files: Lib/test/test_time.py description: Issue #10278: wallclock() cannot go backward, but two consecutive calls may return the same time. diff -r 728cfc671d15 -r fb0f4fe8123e Lib/test/test_time.py --- a/Lib/test/test_time.py Mon Jan 23 23:20:43 2012 +0100 +++ b/Lib/test/test_time.py Mon Jan 23 23:48:41 2012 +0100 @@ -334,7 +334,7 @@ def test_wallclock(self): t1 = time.wallclock() t2 = time.wallclock() - self.assertGreater(t2, t1) + self.assertGreaterEqual(t2, t1) t1 = time.wallclock() time.sleep(0.1) /victor.stinner@haypocalc.com