Fix test_time for adjusted/adjustable changes
This commit is contained in:
parent
2b89fdf7eb
commit
6222d76952
@ -31,7 +31,6 @@ class TimeTestCase(unittest.TestCase):
|
|||||||
time.time()
|
time.time()
|
||||||
info = time.get_clock_info('time')
|
info = time.get_clock_info('time')
|
||||||
self.assertFalse(info.monotonic)
|
self.assertFalse(info.monotonic)
|
||||||
if sys.platform != 'win32':
|
|
||||||
self.assertTrue(info.adjustable)
|
self.assertTrue(info.adjustable)
|
||||||
|
|
||||||
def test_clock(self):
|
def test_clock(self):
|
||||||
@ -371,9 +370,6 @@ class TimeTestCase(unittest.TestCase):
|
|||||||
|
|
||||||
info = time.get_clock_info('monotonic')
|
info = time.get_clock_info('monotonic')
|
||||||
self.assertTrue(info.monotonic)
|
self.assertTrue(info.monotonic)
|
||||||
if sys.platform == 'linux':
|
|
||||||
self.assertTrue(info.adjustable)
|
|
||||||
else:
|
|
||||||
self.assertFalse(info.adjustable)
|
self.assertFalse(info.adjustable)
|
||||||
|
|
||||||
def test_perf_counter(self):
|
def test_perf_counter(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user