我正在使用 tox 和 py.test 来运行我的 Python 单元测试,即使我使用的是 py.test 的--tb=long
选项,错误也会显示如下:
E ConftestImportFailure: (local('/myproject/tests/functional_tests/conftest.py'), (<type 'exceptions.ImportError'>, ImportError('No module named blah',), <traceback object at 0x7fb5bb740518>))
Tox 正在运行命令:
py.test -rxs -rf -rs --ff --tb=long -x -k testname
我该如何显示完整的回溯?--tb
除了选项之外,我在文档中找不到任何提及这一点的内容。