summaryrefslogtreecommitdiff
path: root/setuptools/tests/test_test.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-11-26 14:20:47 -0500
committerJason R. Coombs <jaraco@jaraco.com>2021-11-26 14:20:47 -0500
commit71c2891b14beb8c83bccfeda952b0b15edc65256 (patch)
tree4ab2026a4077867b116425b0f6068734a9826386 /setuptools/tests/test_test.py
parent34defd4d420e31e7c4cefe3e44145c6fe8b41eca (diff)
downloadpython-setuptools-git-71c2891b14beb8c83bccfeda952b0b15edc65256.tar.gz
Remove reliance on distutils log verbosity.
Diffstat (limited to 'setuptools/tests/test_test.py')
-rw-r--r--setuptools/tests/test_test.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/setuptools/tests/test_test.py b/setuptools/tests/test_test.py
index 08d1329f..8b8d9e6c 100644
--- a/setuptools/tests/test_test.py
+++ b/setuptools/tests/test_test.py
@@ -7,15 +7,7 @@ from setuptools.dist import Distribution
from .textwrap import DALS
-@pytest.fixture
-def quiet_log():
- # Running some of the other tests will automatically
- # change the log level to info, messing our output.
- import distutils.log
- distutils.log.set_verbosity(0)
-
-
-@pytest.mark.usefixtures('tmpdir_cwd', 'quiet_log')
+@pytest.mark.usefixtures('tmpdir_cwd')
def test_tests_are_run_once(capfd):
params = dict(
name='foo',
@@ -45,4 +37,5 @@ def test_tests_are_run_once(capfd):
cmd.ensure_finalized()
cmd.run()
out, err = capfd.readouterr()
- assert out == 'Foo\n'
+ assert out.endswith('Foo\n')
+ assert len(out.split('Foo')) == 2