diff options
Diffstat (limited to 'numpy/tests')
-rw-r--r-- | numpy/tests/test_reloading.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/numpy/tests/test_reloading.py b/numpy/tests/test_reloading.py index 5c4309f4a..8d8c8aa34 100644 --- a/numpy/tests/test_reloading.py +++ b/numpy/tests/test_reloading.py @@ -57,5 +57,8 @@ def test_full_reimport(): with warns(UserWarning): import numpy as np """) - p = subprocess.run([sys.executable, '-c', code]) - + p = subprocess.run([sys.executable, '-c', code], capture_output=True) + if p.returncode: + raise AssertionError( + f"Non-zero return code: {p.returncode!r}\n\n{p.stderr.decode()}" + ) |