summaryrefslogtreecommitdiff
path: root/psutil/tests/test_linux.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2018-05-04 23:03:10 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2018-05-04 23:03:10 +0200
commit757f16b744a8b8d8ae442cf69732feff02e83ea8 (patch)
tree80aee5b708c40002e177cd3c54547d5a001c714a /psutil/tests/test_linux.py
parentabbe589de7e6109849924bf6172bd40132fdfc5c (diff)
downloadpsutil-757f16b744a8b8d8ae442cf69732feff02e83ea8.tar.gz
remove outdated linux test
Diffstat (limited to 'psutil/tests/test_linux.py')
-rwxr-xr-xpsutil/tests/test_linux.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py
index d4eaf2a1..9ea59b61 100755
--- a/psutil/tests/test_linux.py
+++ b/psutil/tests/test_linux.py
@@ -1408,20 +1408,6 @@ class TestSensorsBattery(unittest.TestCase):
"/sys/class/power_supply/BAT0/capacity", b"88"):
self.assertEqual(psutil.sensors_battery().percent, 88)
- def test_emulate_no_ac0_online(self):
- # Emulate a case where /AC0/online file does not exist.
- def path_exists_mock(name):
- if name.startswith("/sys/class/power_supply/AC0/online"):
- return False
- else:
- return orig_path_exists(name)
-
- orig_path_exists = os.path.exists
- with mock.patch("psutil._pslinux.os.path.exists",
- side_effect=path_exists_mock) as m:
- psutil.sensors_battery()
- assert m.called
-
def test_emulate_no_power(self):
# Emulate a case where /AC0/online file nor /BAT0/status exist.
with mock_open_exception(