Skip to content

Commit

Permalink
Merge pull request numpy#23963 from charris/backport-23962
Browse files Browse the repository at this point in the history
TEST: change subprocess call to capture stderr too
  • Loading branch information
charris committed Jun 16, 2023
2 parents 78fa6fb + 9b19e19 commit d5f9d1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpy/testing/_private/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1248,8 +1248,8 @@ def check_support_sve():
import subprocess
cmd = 'lscpu'
try:
return "sve" in (subprocess.Popen(cmd, stdout=subprocess.PIPE,
shell=True).communicate()[0]).decode('utf-8')
output = subprocess.run(cmd, capture_output=True, text=True)
return 'sve' in output.stdout
except OSError:
return False

Expand Down

0 comments on commit d5f9d1a

Please sign in to comment.