From de66f8bebb424962b74d541841d96c3048aff865 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Fri, 20 Dec 2024 23:23:25 +0100 Subject: [PATCH] increase tolerance of flaky CPU test on osx --- psutil/tests/test_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py index a7ec77377..723aaa337 100755 --- a/psutil/tests/test_system.py +++ b/psutil/tests/test_system.py @@ -494,7 +494,7 @@ def test_cpu_times_comparison(self): with self.subTest(field=field, base=base, per_cpu=per_cpu): assert ( abs(getattr(base, field) - getattr(summed_values, field)) - < 1 + < 1.5 ) def _test_cpu_percent(self, percent, last_ret, new_ret):