python-psutil/python-psutil-add-delta-to-cputest.patch
2021-08-07 12:56:39 -07:00

13 lines
706 B
Diff

diff --color -Nur psutil-release-5.8.0.orig/psutil/tests/test_system.py psutil-release-5.8.0/psutil/tests/test_system.py
--- psutil-release-5.8.0.orig/psutil/tests/test_system.py 2021-08-07 12:29:17.466043213 -0700
+++ psutil-release-5.8.0/psutil/tests/test_system.py 2021-08-07 12:27:52.273801318 -0700
@@ -433,7 +433,7 @@
summed_values = base._make([sum(num) for num in zip(*per_cpu)])
for field in base._fields:
self.assertAlmostEqual(
- getattr(base, field), getattr(summed_values, field), delta=1)
+ getattr(base, field), getattr(summed_values, field), delta=2)
def _test_cpu_percent(self, percent, last_ret, new_ret):
try: