We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34defd4 commit 71c2891Copy full SHA for 71c2891
setuptools/tests/test_test.py
@@ -7,15 +7,7 @@
7
from .textwrap import DALS
8
9
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')
+@pytest.mark.usefixtures('tmpdir_cwd')
19
def test_tests_are_run_once(capfd):
20
params = dict(
21
name='foo',
@@ -45,4 +37,5 @@ def test_test(self):
45
37
cmd.ensure_finalized()
46
38
cmd.run()
47
39
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