Remove test_logging_initialized_in_test

This commit is contained in:
Thomas Hisch 2017-10-12 01:34:03 +02:00
parent f3261d9418
commit 8aed5fecd9
1 changed files with 0 additions and 17 deletions

View File

@ -342,23 +342,6 @@ class TestLoggingInteraction(object):
# verify proper termination
assert "closed" not in s
def test_logging_initialized_in_test(self, testdir):
p = testdir.makepyfile("""
def test_something():
import logging
logging.basicConfig()
logging.warn("hello432")
assert 0
""")
result = testdir.runpytest_subprocess(
p, "--traceconfig",
"-p", "no:capturelog", "-p", "no:hypothesis", "-p", "no:hypothesispytest")
assert result.ret != 0
result.stdout.fnmatch_lines([
"*hello432*",
])
assert 'operation on closed file' not in result.stderr.str()
def test_conftestlogging_is_shown(self, testdir):
testdir.makeconftest("""
import logging