diff options
Diffstat (limited to 'Lib/test/test_time.py')
-rw-r--r-- | Lib/test/test_time.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 2baf066..28d018a 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -340,6 +340,16 @@ class TimeTestCase(unittest.TestCase): self.assertGreater(t2, t1) self.assertAlmostEqual(dt, 0.1, delta=0.2) + def test_steady_strict(self): + try: + t1 = time.steady(strict=True) + except OSError as err: + self.skipTest("the monotonic clock failed: %s" % err) + except NotImplementedError: + self.skipTest("no monotonic clock available") + t2 = time.steady(strict=True) + self.assertGreaterEqual(t2, t1) + def test_localtime_failure(self): # Issue #13847: check for localtime() failure invalid_time_t = None |