Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
python-psutil.25587
skip_failing_tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File skip_failing_tests.patch of Package python-psutil.25587
Index: psutil-5.7.3/psutil/tests/test_linux.py =================================================================== --- psutil-5.7.3.orig/psutil/tests/test_linux.py +++ psutil-5.7.3/psutil/tests/test_linux.py @@ -1564,6 +1564,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( @@ -1571,6 +1573,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