mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Issue #10278: wallclock() cannot go backward, but two consecutive calls
may return the same time.
This commit is contained in:
parent
6d766fc3fa
commit
4ccc727793
1 changed files with 1 additions and 1 deletions
|
|
@ -334,7 +334,7 @@ def test_mktime_error(self):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue