标签: python-hunter

即使有`py.test -s`也没有输出

我想py.testhunter结合使用:

PYTHONHUNTER="module_startswith='foo'" py.test -s -k test_bar
Run Code Online (Sandbox Code Playgroud)

不幸的是,hunter的输出(跟踪)不可见。

版:

foo_cok_d@aptguettler:~$ py.test --version

This is pytest version 3.4.2, imported from /home/foo_cok_d/local/lib/python2.7/site-packages/pytest.pyc
setuptools registered plugins:
  pytest-xdist-1.22.2 at /home/foo_cok_d/local/lib/python2.7/site-packages/xdist/looponfail.py
  pytest-xdist-1.22.2 at /home/foo_cok_d/local/lib/python2.7/site-packages/xdist/plugin.py
  pytest-forked-0.2 at /home/foo_cok_d/local/lib/python2.7/site-packages/pytest_forked/__init__.pyc
Run Code Online (Sandbox Code Playgroud)

在更简单(较小)的virtualenv中,它可以工作(相同的pytest版本,但没有插件)。

可能是什么原因?

如何调试呢?

python pytest python-2.7 xdist python-hunter

10
推荐指数
1
解决办法
234
查看次数

标签 统计

pytest ×1

python ×1

python-2.7 ×1

python-hunter ×1

xdist ×1