commit | 4ccc7277937650f2cbb3a5235f7b98f4fafa26fd | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Mon Jan 23 23:48:41 2012 +0100 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Mon Jan 23 23:48:41 2012 +0100 |
tree | c031e6faa59acb3f169d1c09993f975711c85af0 | |
parent | 6d766fc3facd08615cd3cfe5699e864f196941b5 [diff] |
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 d34b870..685e821 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py
@@ -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)