New issue 599: internal error at unknown location https://bitbucket.org/hpk42/pytest/issue/599/internal-error-at-unknown-location
m27315: I have a large pytest suite with 10,000+tests, many due to the power of parameterization! (Thanks!) Recently, I changed the backend driver to connect via pipes for processes on localhost instead of telnet. Anyway, after switching out the backend connection method, I receive the following backtrace: ``` #!python test_elmo_smoke/test_elmo_smoke.py::TestELMO_Smoke::test_smoke2 methods: [<function pytest_report_teststatus at 0x1028f2b0>, <function pytest_report_teststatus at 0x481ee770>, <function pytest_report_teststatus at 0x10300c70>] kwargs: {'report': <TestReport 'test_elmo_smoke/test_elmo_smoke.py::TestELMO_Smoke::()::test_smoke2' when='setup' outcome='passed'>} methods: [<bound method TerminalReporter.pytest_internalerror of <_pytest.terminal.TerminalReporter instance at 0x106a8670>>, <bound method CaptureManager.pytest_internalerror of <_pytest.capture.CaptureManager instance at 0x1046c350>>] kwargs: {'excrepr': <py._code.code.ReprExceptionInfo instance at 10d0af30>, 'excinfo': <ExceptionInfo AttributeError tblen=21>} INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/lib/python2.7/_pytest/main.py", line 84, in wrap_session INTERNALERROR> doit(config, session) INTERNALERROR> File "/lib/python2.7/_pytest/main.py", line 122, in _main INTERNALERROR> config.hook.pytest_runtestloop(session=session) INTERNALERROR> File "/lib/python2.7/_pytest/core.py", line 414, in __call__ INTERNALERROR> return self._docall(methods, kwargs) INTERNALERROR> File "/lib/python2.7/_pytest/core.py", line 425, in _docall INTERNALERROR> res = mc.execute() INTERNALERROR> File "/lib/python2.7/_pytest/core.py", line 315, in execute INTERNALERROR> res = method(**kwargs) INTERNALERROR> File "/lib/python2.7/_pytest/main.py", line 142, in pytest_runtestloop INTERNALERROR> item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) INTERNALERROR> File "/lib/python2.7/_pytest/core.py", line 414, in __call__ INTERNALERROR> return self._docall(methods, kwargs) INTERNALERROR> AttributeError: 'TracebackEntry' object has no attribute 'set_repr_style' methods: [<function pytest_sessionfinish at 0x481ee5b0>, <function pytest_sessionfinish at 0x1032b470>, <bound method TerminalReporter.pytest_sessionfinish of <_pytest.terminal.TerminalReporter instance at 0x106a8670>>] kwargs: {'session': <Session 'elmo'>, 'exitstatus': 3} =========================================================== 1 tests deselected by "-m 'smoke2'" ============================================================ ============================================================== 1 deselected in 63.29 seconds =============================================================== methods: [<function pytest_unconfigure at 0x10325470>, <bound method Config.pytest_unconfigure of <_pytest.config.Config object at 0x480e4f70>>, <function pytest_unconfigure at 0x10304df0>, <function pytest_unconfigure at 0x1032b370>, <function pytest_unconfigure at 0x103394b0>, <function pytest_unconfigure at 0x10339bf0>, <bound method TerminalReporter.pytest_unconfigure of <_pytest.terminal.TerminalReporter instance at 0x106a8670>>] kwargs: {'config': <_pytest.config.Config object at 0x480e4f70>} ``` I added the print statements are _docall to help with the backtrace's lack of information. This seems like a bug in pytest. Most likely there is a bug in my test, but I cannot even begin to debug this. I wish it could tell me what line in my test caused this issue. (It's a BIG test.) Plus, this should result in a fail, not a pass. Thanks for an awesome tool! _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit