diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2012-01-23 22:48:41 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2012-01-23 22:48:41 (GMT) |
commit | 4ccc7277937650f2cbb3a5235f7b98f4fafa26fd (patch) | |
tree | c031e6faa59acb3f169d1c09993f975711c85af0 /Lib/test/test_time.py | |
parent | 6d766fc3facd08615cd3cfe5699e864f196941b5 (diff) | |
download | cpython-4ccc7277937650f2cbb3a5235f7b98f4fafa26fd.zip cpython-4ccc7277937650f2cbb3a5235f7b98f4fafa26fd.tar.gz cpython-4ccc7277937650f2cbb3a5235f7b98f4fafa26fd.tar.bz2 |
Issue #10278: wallclock() cannot go backward, but two consecutive calls
may return the same time.
Diffstat (limited to 'Lib/test/test_time.py')
-rw-r--r-- | Lib/test/test_time.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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) |