diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py index 0c6d498c8..f5243c2cd 100755 --- a/psutil/tests/test_linux.py +++ b/psutil/tests/test_linux.py @@ -243,7 +243,8 @@ def test_total(self): # self.assertEqual(free_value, psutil_value) vmstat_value = vmstat('total memory') * 1024 psutil_value = psutil.virtual_memory().total - self.assertAlmostEqual(vmstat_value, psutil_value) + self.assertAlmostEqual( + vmstat_value, psutil_value, delta=TOLERANCE_SYS_MEM) @retry_on_failure() def test_used(self):