diff options
author | Matti Picus <matti.picus@gmail.com> | 2022-05-06 09:37:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 09:37:42 +0300 |
commit | f0ef64b9d139c7fa3022a82620ce00e515f56dfd (patch) | |
tree | 37a64e23fc9759cff67e33cb8dbfb4cea88e9ed8 /numpy/distutils | |
parent | 06f6cc22d79203cbdb1ad43cc141853e24cb120c (diff) | |
parent | 939af59d5c35f0e8e6b4f0c8c3ad9a50cd612ec6 (diff) | |
download | numpy-f0ef64b9d139c7fa3022a82620ce00e515f56dfd.tar.gz |
Merge pull request #21452 from seberg/cleanup-test-output
TST: Remove most prints from the test suit run
Diffstat (limited to 'numpy/distutils')
-rw-r--r-- | numpy/distutils/tests/test_log.py | 4 |
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(): |