我使用pytest作为我的应用程序的一部分。我创建了一些在测试中使用的补丁,然后使用一些测试运行pytest.main。
插件:
class MyPlugin(object):
def __init__(self):
...some code here
@pytest.fixture
def fixture1(self, request):
return self.something打电话到pytest:
plugin = MyPlugin()
pytest.main(cmdline, plugins=[plugin])在使用pytest运行的每个应用程序上,我都会收到警告:
WI1 /usr/lib/python2.7/dist-packages/pytest_timeout.py:68 'pytest_runtest_protocol' hook uses deprecated __multicall__ argument
这是什么,为什么是,如何解决?
发布于 2017-03-26 02:29:03
您使用的pytest_timeout插件触发它,它应该得到更新。
https://stackoverflow.com/questions/43009164
复制相似问题