Skip to content

Commit a4086af

Browse files
committed
fix flaky test by using assertAlmostEqual
1 parent 4afcda0 commit a4086af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythonosc/test/parsing/test_ntp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_nto_to_system_time(self):
1414
self.assertTrue(type(unix_time) is float)
1515
self.assertTrue(type(timestamp) is bytes)
1616
self.assertTrue(type(unix_time2) is float)
17-
self.assertEqual(round(unix_time, 6), round(unix_time2, 6))
17+
self.assertAlmostEqual(unix_time, unix_time2, places=5)
1818

1919

2020
if __name__ == "__main__":

0 commit comments

Comments
 (0)