From: Victor Stinner Date: Mon, 23 Jan 2012 22:48:41 +0000 (+0100) Subject: Issue #10278: wallclock() cannot go backward, but two consecutive calls X-Git-Tag: v3.3.0a1~312^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ccc7277937650f2cbb3a5235f7b98f4fafa26fd;p=thirdparty%2FPython%2Fcpython.git Issue #10278: wallclock() cannot go backward, but two consecutive calls may return the same time. --- diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index d34b870f7322..685e821d40fb 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -334,7 +334,7 @@ class TimeTestCase(unittest.TestCase): 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)