Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37829316
en ru br
ALT Linux repositórios
S:1.25.2-alt1

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


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
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009