-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
TestLoggingInteraction.test_logging_initialized_in_test fails #1163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Closed
Unreproducable in pytest-2.8.7 |
Hi, I'm having the same issue with pytest-2.9.1: ============================================================================================ FAILURES ============================================================================================
____________________________________________________________________ TestLoggingInteraction.test_logging_initialized_in_test _____________________________________________________________________
self = <test_capture.TestLoggingInteraction object at 0x7f788e8ee5c0>
testdir = <Testdir local('/var/tmp/paludis/build/dev-python-pytest-2.9.0/temp/pytest-of-root/pytest-15/testdir/test_logging_initialized_in_test0')>
def test_logging_initialized_in_test(self, testdir):
p = testdir.makepyfile("""
import sys
def test_something():
# pytest does not import logging
assert 'logging' not in sys.modules
import logging
logging.basicConfig()
logging.warn("hello432")
assert 0
""")
result = testdir.runpytest_subprocess(
p, "--traceconfig",
"-p", "no:capturelog")
assert result.ret != 0
result.stdout.fnmatch_lines([
> "*hello432*",
])
E Failed: remains unmatched: '*hello432*', see stderr
../../../../../work/PYTHON_ABIS/3.4/pytest-2.9.0/testing/test_capture.py:359: Failed
-------------------------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------------------------
running: /usr/bin/python3.4 /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/pytest.py --basetemp=/var/tmp/paludis/build/dev-python-pytest-2.9.0/temp/pytest-of-root/pytest-15/testdir/test_logging_initialized_in_test0/runpytest-0 /var/tmp/paludis/build/dev-python-pytest-2.9.0/temp/pytest-of-root/pytest-15/testdir/test_logging_initialized_in_test0/test_logging_initialized_in_test.py --traceconfig -p no:capturelog
in: /var/tmp/paludis/build/dev-python-pytest-2.9.0/temp/pytest-of-root/pytest-15/testdir/test_logging_initialized_in_test0
PLUGIN registered: <_pytest.config.PytestPluginManager object at 0x7fa67feeeba8>
PLUGIN registered: <_pytest.config.Config object at 0x7fa67e540be0>
PLUGIN registered: <module '_pytest.mark' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/mark.py'>
PLUGIN registered: <module '_pytest.main' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/main.py'>
PLUGIN registered: <module '_pytest.terminal' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/terminal.py'>
PLUGIN registered: <module '_pytest.runner' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/runner.py'>
PLUGIN registered: <module '_pytest.python' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/python.py'>
PLUGIN registered: <module '_pytest.pdb' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/pdb.py'>
PLUGIN registered: <module '_pytest.unittest' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/unittest.py'>
PLUGIN registered: <module '_pytest.capture' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/capture.py'>
PLUGIN registered: <module '_pytest.skipping' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/skipping.py'>
PLUGIN registered: <module '_pytest.tmpdir' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/tmpdir.py'>
PLUGIN registered: <module '_pytest.monkeypatch' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/monkeypatch.py'>
PLUGIN registered: <module '_pytest.recwarn' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/recwarn.py'>
PLUGIN registered: <module '_pytest.pastebin' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/pastebin.py'>
PLUGIN registered: <module '_pytest.helpconfig' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/helpconfig.py'>
PLUGIN registered: <module '_pytest.nose' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/nose.py'>
PLUGIN registered: <module '_pytest.assertion' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/assertion/__init__.py'>
PLUGIN registered: <module '_pytest.genscript' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/genscript.py'>
PLUGIN registered: <module '_pytest.junitxml' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/junitxml.py'>
PLUGIN registered: <module '_pytest.resultlog' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/resultlog.py'>
PLUGIN registered: <module '_pytest.doctest' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/doctest.py'>
PLUGIN registered: <module '_pytest.cacheprovider' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/cacheprovider.py'>
PLUGIN registered: <module 'hypothesis.extra.pytestplugin' from '/usr/lib/python3.4/site-packages/hypothesis/extra/pytestplugin.py'>
PLUGIN registered: <_pytest.capture.CaptureManager object at 0x7fa67a24a048>
PLUGIN registered: <Session 'test_logging_initialized_in_test0'>
PLUGIN registered: <_pytest.cacheprovider.LFPlugin object at 0x7fa67a248978>
PLUGIN registered: <_pytest.terminal.TerminalReporter object at 0x7fa67a203048>
PLUGIN registered: <_pytest.python.FixtureManager object at 0x7fa67a2179b0>
====================================================================================== test session starts =======================================================================================
platform linux -- Python 3.4.3, pytest-2.9.0, py-1.4.31, pluggy-0.3.1
using: pytest-2.9.0 pylib-1.4.31
setuptools registered plugins:
hypothesis-1.12.0 at /usr/lib/python3.4/site-packages/hypothesis/extra/pytestplugin.py
active plugins:
main : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/main.py
monkeypatch : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/monkeypatch.py
140353087663016 : <_pytest.config.PytestPluginManager object at 0x7fa67feeeba8>
python : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/python.py
pdb : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/pdb.py
unittest : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/unittest.py
resultlog : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/resultlog.py
cacheprovider : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/cacheprovider.py
lfplugin : <_pytest.cacheprovider.LFPlugin object at 0x7fa67a248978>
pytestconfig : <_pytest.config.Config object at 0x7fa67e540be0>
nose : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/nose.py
mark : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/mark.py
pastebin : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/pastebin.py
assertion : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/assertion/__init__.py
pytest_capturelog : None
hypothesispytest : /usr/lib/python3.4/site-packages/hypothesis/extra/pytestplugin.py
terminalreporter : <_pytest.terminal.TerminalReporter object at 0x7fa67a203048>
capturemanager : <_pytest.capture.CaptureManager object at 0x7fa67a24a048>
doctest : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/doctest.py
capturelog : None
session : <Session 'test_logging_initialized_in_test0'>
funcmanage : <_pytest.python.FixtureManager object at 0x7fa67a2179b0>
tmpdir : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/tmpdir.py
helpconfig : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/helpconfig.py
genscript : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/genscript.py
junitxml : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/junitxml.py
capture : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/capture.py
terminal : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/terminal.py
runner : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/runner.py
skipping : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/skipping.py
recwarn : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/recwarn.py
rootdir: /var/tmp/paludis/build/dev-python-pytest-2.9.0/temp/pytest-of-root/pytest-15/testdir/test_logging_initialized_in_test0, inifile:
plugins: hypothesis-1.12.0
collected 1 items
test_logging_initialized_in_test.py F
============================================================================================ FAILURES ============================================================================================
_________________________________________________________________________________________ test_something _________________________________________________________________________________________
def test_something():
# pytest does not import logging
> assert 'logging' not in sys.modules
E assert 'logging' not in {'__future__': <module '__future__' from '/usr/lib/python3.4/__future__.py'>, '__main__': <module '__main__' from '/va...le '_ast' (built-in)>, '_bisect': <module '_bisect' from '/usr/lib/python3.4/lib-dynload/_bisect.cpython-34m.so'>, ...}
E + where {'__future__': <module '__future__' from '/usr/lib/python3.4/__future__.py'>, '__main__': <module '__main__' from '/va...le '_ast' (built-in)>, '_bisect': <module '_bisect' from '/usr/lib/python3.4/lib-dynload/_bisect.cpython-34m.so'>, ...} = sys.modules
test_logging_initialized_in_test.py:4: AssertionError
==================================================================================== 1 failed in 0.01 seconds ====================================================================================
-------------------------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------------------------
nomatch: '*hello432*'
and: 'PLUGIN registered: <_pytest.config.PytestPluginManager object at 0x7fa67feeeba8>'
and: 'PLUGIN registered: <_pytest.config.Config object at 0x7fa67e540be0>'
and: "PLUGIN registered: <module '_pytest.mark' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/mark.py'>"
and: "PLUGIN registered: <module '_pytest.main' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/main.py'>"
and: "PLUGIN registered: <module '_pytest.terminal' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/terminal.py'>"
and: "PLUGIN registered: <module '_pytest.runner' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/runner.py'>"
and: "PLUGIN registered: <module '_pytest.python' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/python.py'>"
and: "PLUGIN registered: <module '_pytest.pdb' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/pdb.py'>"
and: "PLUGIN registered: <module '_pytest.unittest' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/unittest.py'>"
and: "PLUGIN registered: <module '_pytest.capture' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/capture.py'>"
and: "PLUGIN registered: <module '_pytest.skipping' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/skipping.py'>"
and: "PLUGIN registered: <module '_pytest.tmpdir' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/tmpdir.py'>"
and: "PLUGIN registered: <module '_pytest.monkeypatch' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/monkeypatch.py'>"
and: "PLUGIN registered: <module '_pytest.recwarn' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/recwarn.py'>"
and: "PLUGIN registered: <module '_pytest.pastebin' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/pastebin.py'>"
and: "PLUGIN registered: <module '_pytest.helpconfig' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/helpconfig.py'>"
and: "PLUGIN registered: <module '_pytest.nose' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/nose.py'>"
and: "PLUGIN registered: <module '_pytest.assertion' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/assertion/__init__.py'>"
and: "PLUGIN registered: <module '_pytest.genscript' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/genscript.py'>"
and: "PLUGIN registered: <module '_pytest.junitxml' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/junitxml.py'>"
and: "PLUGIN registered: <module '_pytest.resultlog' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/resultlog.py'>"
and: "PLUGIN registered: <module '_pytest.doctest' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/doctest.py'>"
and: "PLUGIN registered: <module '_pytest.cacheprovider' from '/var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/cacheprovider.py'>"
and: "PLUGIN registered: <module 'hypothesis.extra.pytestplugin' from '/usr/lib/python3.4/site-packages/hypothesis/extra/pytestplugin.py'>"
and: 'PLUGIN registered: <_pytest.capture.CaptureManager object at 0x7fa67a24a048>'
and: "PLUGIN registered: <Session 'test_logging_initialized_in_test0'>"
and: 'PLUGIN registered: <_pytest.cacheprovider.LFPlugin object at 0x7fa67a248978>'
and: 'PLUGIN registered: <_pytest.terminal.TerminalReporter object at 0x7fa67a203048>'
and: 'PLUGIN registered: <_pytest.python.FixtureManager object at 0x7fa67a2179b0>'
and: '====================================================================================== test session starts ======================================================================================='
and: 'platform linux -- Python 3.4.3, pytest-2.9.0, py-1.4.31, pluggy-0.3.1'
and: 'using: pytest-2.9.0 pylib-1.4.31'
and: 'setuptools registered plugins:'
and: ' hypothesis-1.12.0 at /usr/lib/python3.4/site-packages/hypothesis/extra/pytestplugin.py'
and: 'active plugins:'
and: ' main : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/main.py'
and: ' monkeypatch : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/monkeypatch.py'
and: ' 140353087663016 : <_pytest.config.PytestPluginManager object at 0x7fa67feeeba8>'
and: ' python : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/python.py'
and: ' pdb : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/pdb.py'
and: ' unittest : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/unittest.py'
and: ' resultlog : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/resultlog.py'
and: ' cacheprovider : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/cacheprovider.py'
and: ' lfplugin : <_pytest.cacheprovider.LFPlugin object at 0x7fa67a248978>'
and: ' pytestconfig : <_pytest.config.Config object at 0x7fa67e540be0>'
and: ' nose : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/nose.py'
and: ' mark : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/mark.py'
and: ' pastebin : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/pastebin.py'
and: ' assertion : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/assertion/__init__.py'
and: ' pytest_capturelog : None'
and: ' hypothesispytest : /usr/lib/python3.4/site-packages/hypothesis/extra/pytestplugin.py'
and: ' terminalreporter : <_pytest.terminal.TerminalReporter object at 0x7fa67a203048>'
and: ' capturemanager : <_pytest.capture.CaptureManager object at 0x7fa67a24a048>'
and: ' doctest : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/doctest.py'
and: ' capturelog : None'
and: " session : <Session 'test_logging_initialized_in_test0'>"
and: ' funcmanage : <_pytest.python.FixtureManager object at 0x7fa67a2179b0>'
and: ' tmpdir : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/tmpdir.py'
and: ' helpconfig : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/helpconfig.py'
and: ' genscript : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/genscript.py'
and: ' junitxml : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/junitxml.py'
and: ' capture : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/capture.py'
and: ' terminal : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/terminal.py'
and: ' runner : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/runner.py'
and: ' skipping : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/skipping.py'
and: ' recwarn : /var/tmp/paludis/build/dev-python-pytest-2.9.0/work/PYTHON_ABIS/3.4/pytest-2.9.0/_pytest/recwarn.py'
and: 'rootdir: /var/tmp/paludis/build/dev-python-pytest-2.9.0/temp/pytest-of-root/pytest-15/testdir/test_logging_initialized_in_test0, inifile: '
and: 'plugins: hypothesis-1.12.0'
and: 'collected 1 items'
and: ''
and: 'test_logging_initialized_in_test.py F'
and: ''
and: '============================================================================================ FAILURES ============================================================================================'
and: '_________________________________________________________________________________________ test_something _________________________________________________________________________________________'
and: ''
and: ' def test_something():'
and: ' # pytest does not import logging'
and: "> assert 'logging' not in sys.modules"
and: "E assert 'logging' not in {'__future__': <module '__future__' from '/usr/lib/python3.4/__future__.py'>, '__main__': <module '__main__' from '/va...le '_ast' (built-in)>, '_bisect': <module '_bisect' from '/usr/lib/python3.4/lib-dynload/_bisect.cpython-34m.so'>, ...}"
and: "E + where {'__future__': <module '__future__' from '/usr/lib/python3.4/__future__.py'>, '__main__': <module '__main__' from '/va...le '_ast' (built-in)>, '_bisect': <module '_bisect' from '/usr/lib/python3.4/lib-dynload/_bisect.cpython-34m.so'>, ...} = sys.modules"
and: ''
and: 'test_logging_initialized_in_test.py:4: AssertionError'
and: '==================================================================================== 1 failed in 0.01 seconds ===================================================================================='
================================================================= 1 failed, 1457 passed, 55 skipped, 11 xfailed in 95.35 seconds ================================================================= Using python 3.4 on Exherbo. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pytest-2.8.2 and python 3.4 on Gentoo Linux 64bit
The text was updated successfully, but these errors were encountered: