From b2bbd272f6b183ddc7c119d39ed5c969b399239f Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Thu, 12 Apr 2018 10:51:44 +0200 Subject: remove incorrect test assumption that proc cpu percent on windows is supposed to be <= 100, see https://ci.appveyor.com/project/giampaolo/psutil/build/1477/job/w1e0u92xrgg91ye3 --- psutil/tests/test_process.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py index 3411114a..6f58be6d 100755 --- a/psutil/tests/test_process.py +++ b/psutil/tests/test_process.py @@ -238,10 +238,6 @@ class TestProcess(unittest.TestCase): percent = p.cpu_percent(interval=None) self.assertIsInstance(percent, float) self.assertGreaterEqual(percent, 0.0) - if not POSIX: - self.assertLessEqual(percent, 100.0) - else: - self.assertGreaterEqual(percent, 0.0) with self.assertRaises(ValueError): p.cpu_percent(interval=-1) -- cgit v1.2.1