Group :: Development/Python3
RPM: python3-module-numpy
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: numpy-1.21.4-alt-use-sleep-in-auxv-test.patch
Download
Download
diff --git a/numpy/core/tests/test_cpu_features.py b/numpy/core/tests/test_cpu_features.py
index 6ef8a02c0..60d34e3c9 100644
--- a/numpy/core/tests/test_cpu_features.py
+++ b/numpy/core/tests/test_cpu_features.py
@@ -15,7 +15,7 @@ def assert_features_equal(actual, desired, fname):
try:
import subprocess
- auxv = subprocess.check_output(['/bin/true'], env=dict(LD_SHOW_AUXV="1"))
+ auxv = subprocess.check_output(['/bin/sleep', '0.1'], env=dict(LD_SHOW_AUXV="1"))
auxv = auxv.decode()
except Exception as err:
auxv = str(err)
@@ -93,7 +93,7 @@ def get_cpuinfo_item(self, magic_key):
return values
def load_flags_auxv(self):
- auxv = subprocess.check_output(['/bin/true'], env=dict(LD_SHOW_AUXV="1"))
+ auxv = subprocess.check_output(['/bin/sleep', '0.1'], env=dict(LD_SHOW_AUXV="1"))
for at in auxv.split(b'\n'):
if not at.startswith(b"AT_HWCAP"):
continue