forked from pool/python-pyperf
* python-retcode.patch * python38.patch - Update to 1.7.0: * metadata: add ``python_compiler`` * Windows: inherit ``SystemDrive`` environment variable by default. * Fix tests on ARM and PPC: cpu_model_name metadata is no longer required on Linux. * tests: Do not allow test suite to execute without unittest2 on Python2, otherwise man failures occur due to missing 'assertRegex'. * doc: Update old/dead links. * Travis CI: drop Python 3.4 support. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyperf?expand=0&rev=3
16 lines
635 B
Diff
16 lines
635 B
Diff
Index: pyperf-1.7.0/pyperf/tests/test_system.py
|
|
===================================================================
|
|
--- pyperf-1.7.0.orig/pyperf/tests/test_system.py
|
|
+++ pyperf-1.7.0/pyperf/tests/test_system.py
|
|
@@ -18,7 +18,9 @@ class SystemTests(unittest.TestCase):
|
|
|
|
# The return code is either 0 if the system is tuned or 2 if the
|
|
# system isn't
|
|
- self.assertIn(proc.returncode, (0, 2), msg=proc)
|
|
+ # Also it can return 1 if /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
|
+ # is not available
|
|
+ self.assertIn(proc.returncode, (0, 1, 2), msg=proc)
|
|
|
|
|
|
if __name__ == "__main__":
|