forked from pool/python-pyperf
- Add patches to work with py3.8:
* 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
This commit is contained in:
committed by
Git OBS Bridge
parent
eef4b1dded
commit
0d42012e1b
15
python-retcode.patch
Normal file
15
python-retcode.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
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__":
|
Reference in New Issue
Block a user