We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a200b6a + a3c6773 commit ae4e06aCopy full SHA for ae4e06a
utest/utils/test_robottime.py
@@ -22,10 +22,10 @@ def test_get_timetuple_excluding_millis(self):
22
23
def test_get_current_timetuple_excluding_millis(self):
24
while True:
25
- expected = time.localtime()
+ expected = time.localtime(time.time())
26
actual = _get_timetuple()
27
# make sure got same times and _get_timetuple() did not round millis
28
- if expected == time.localtime() and actual[-1] > 0:
+ if expected == time.localtime(time.time()) and actual[-1] > 0:
29
break
30
assert_equal(actual[:-1], expected[:6])
31
0 commit comments