summaryrefslogtreecommitdiff
path: root/psutil/tests
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2021-01-15 19:07:38 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2021-01-15 19:07:38 +0100
commit4ad3380bb312b6ea06717e3adc1f60ac8daf4a05 (patch)
tree923f2b548ada7533fb6e794b8253941ec225b6f6 /psutil/tests
parent3223228b0558e42508cf9f8cce84d89c79b5c52b (diff)
parente80cabe5206fd7ef14fd6a47e2571f660f95babf (diff)
downloadpsutil-new-cpu-count.tar.gz
Merge branch 'master' into new-cpu-countnew-cpu-count
Diffstat (limited to 'psutil/tests')
-rwxr-xr-xpsutil/tests/test_linux.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py
index c6759ba0..e03490b3 100755
--- a/psutil/tests/test_linux.py
+++ b/psutil/tests/test_linux.py
@@ -794,18 +794,14 @@ class TestSystemCPUFrequency(PsutilTestCase):
if path.startswith('/sys/devices/system/cpu/'):
return False
else:
- if path == "/proc/cpuinfo":
- flags.append(None)
return os_path_exists(path)
- flags = []
os_path_exists = os.path.exists
try:
with mock.patch("os.path.exists", side_effect=path_exists_mock):
reload_module(psutil._pslinux)
ret = psutil.cpu_freq()
assert ret
- assert flags
self.assertEqual(ret.max, 0.0)
self.assertEqual(ret.min, 0.0)
for freq in psutil.cpu_freq(percpu=True):