diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py index 6656c19ba..56979c927 100755 --- a/psutil/tests/test_system.py +++ b/psutil/tests/test_system.py @@ -385,7 +385,7 @@ def test_cpu_times(self): self.assertIsInstance(cp_time, float) self.assertGreaterEqual(cp_time, 0.0) total += cp_time - self.assertAlmostEqual(total, sum(times)) + self.assertAlmostEqual(total, sum(times), places=6) str(times) # CPU times are always supposed to increase over time # or at least remain the same and that's because time @@ -424,7 +424,7 @@ def test_per_cpu_times(self): self.assertIsInstance(cp_time, float) self.assertGreaterEqual(cp_time, 0.0) total += cp_time - self.assertAlmostEqual(total, sum(times)) + self.assertAlmostEqual(total, sum(times), places=6) str(times) self.assertEqual( len(psutil.cpu_times(percpu=True)[0]),