summaryrefslogtreecommitdiff
path: root/numpy/distutils/tests
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-05-05 19:02:05 +0200
committerSebastian Berg <sebastian@sipsolutions.net>2022-05-05 19:23:23 +0200
commit939af59d5c35f0e8e6b4f0c8c3ad9a50cd612ec6 (patch)
tree6b284c19523f999a92508976dd7a4d9f26c1d71f /numpy/distutils/tests
parent4c3958b98913e6d77c751cd4556efbb27e43c446 (diff)
downloadnumpy-939af59d5c35f0e8e6b4f0c8c3ad9a50cd612ec6.tar.gz
TST: Remove most prints from the test suit run
Pytest silence these normally anyway (capturing it to print it only on failure), but occasionally I run with `-s` and I don't think this output adds anything unless using printing to debug a specific test. If nobody else cares about it nvm, just close it :). Otherwise this cleans up everything in the fast tests, except the f2py compilation right now.
Diffstat (limited to 'numpy/distutils/tests')
-rw-r--r--numpy/distutils/tests/test_log.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/distutils/tests/test_log.py b/numpy/distutils/tests/test_log.py
index 36f49f592..72fddf373 100644
--- a/numpy/distutils/tests/test_log.py
+++ b/numpy/distutils/tests/test_log.py
@@ -8,7 +8,9 @@ from numpy.distutils import log
def setup_module():
- log.set_verbosity(2, force=True) # i.e. DEBUG
+ f = io.StringIO() # changing verbosity also logs here, capture that
+ with redirect_stdout(f):
+ log.set_verbosity(2, force=True) # i.e. DEBUG
def teardown_module():