From 757f16b744a8b8d8ae442cf69732feff02e83ea8 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Fri, 4 May 2018 23:03:10 +0200 Subject: remove outdated linux test --- psutil/tests/test_linux.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'psutil/tests/test_linux.py') 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( -- cgit v1.2.1