Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:stroeder:iam
python-psutil
skip_failing_tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File skip_failing_tests.patch of Package python-psutil
--- psutil/tests/test_linux.py | 4 ++++ 1 file changed, 4 insertions(+) --- a/psutil/tests/test_linux.py +++ b/psutil/tests/test_linux.py @@ -1614,6 +1614,8 @@ class TestSensorsBattery(PsutilTestCase) self.assertIsNone(psutil.sensors_battery().power_plugged) assert m.called + @unittest.skipUnless(os.path.exists('/sys/class/power_supply/BAT0/energy_full'), + 'Missing /sys/class/power_supply/BAT0/energy_full file.') def test_emulate_energy_full_0(self): # Emulate a case where energy_full files returns 0. with mock_open_content( @@ -1621,6 +1623,8 @@ class TestSensorsBattery(PsutilTestCase) self.assertEqual(psutil.sensors_battery().percent, 0) assert m.called + @unittest.skipUnless(os.path.exists('/sys/class/power_supply/BAT0/energy_full'), + 'Missing /sys/class/power_supply/BAT0/energy_full file.') def test_emulate_energy_full_not_avail(self): # Emulate a case where energy_full file does not exist. # Expected fallback on /capacity.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor