Merge pull request #657 from pacenathan/MacTimingTest

Make timing test more tolerant
This commit is contained in:
Chris Mayo 2022-09-10 17:24:56 +01:00 committed by GitHub
commit fd6f4a0160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,4 +45,4 @@ class TestDecorators(unittest.TestCase):
return 42
self.assertEqual(f(), 42)
self.assertEqual(log.getvalue(), "f took 1.00 seconds\n()\n{}\n")
self.assertRegex(log.getvalue(), r"f took 1\.0. seconds")