diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2018-05-04 23:03:10 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2018-05-04 23:03:10 +0200 |
| commit | 757f16b744a8b8d8ae442cf69732feff02e83ea8 (patch) | |
| tree | 80aee5b708c40002e177cd3c54547d5a001c714a /psutil/tests/test_linux.py | |
| parent | abbe589de7e6109849924bf6172bd40132fdfc5c (diff) | |
| download | psutil-757f16b744a8b8d8ae442cf69732feff02e83ea8.tar.gz | |
remove outdated linux test
Diffstat (limited to 'psutil/tests/test_linux.py')
| -rwxr-xr-x | psutil/tests/test_linux.py | 14 |
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( |
