Skip to content

Commit 71c2891

Browse files
committed
Remove reliance on distutils log verbosity.
1 parent 34defd4 commit 71c2891

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

setuptools/tests/test_test.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,7 @@
77
from .textwrap import DALS
88

99

10-
@pytest.fixture
11-
def quiet_log():
12-
# Running some of the other tests will automatically
13-
# change the log level to info, messing our output.
14-
import distutils.log
15-
distutils.log.set_verbosity(0)
16-
17-
18-
@pytest.mark.usefixtures('tmpdir_cwd', 'quiet_log')
10+
@pytest.mark.usefixtures('tmpdir_cwd')
1911
def test_tests_are_run_once(capfd):
2012
params = dict(
2113
name='foo',
@@ -45,4 +37,5 @@ def test_test(self):
4537
cmd.ensure_finalized()
4638
cmd.run()
4739
out, err = capfd.readouterr()
48-
assert out == 'Foo\n'
40+
assert out.endswith('Foo\n')
41+
assert len(out.split('Foo')) == 2

0 commit comments

Comments
 (0)