streamline tests so that they work wit pytest-2.8

This commit is contained in:
holger krekel
2015-05-06 13:34:33 +02:00
parent eb53a5f8a0
commit faf2e0861f
5 changed files with 51 additions and 36 deletions

View File

@@ -58,8 +58,8 @@ def pytest_cmdline_main(config):
looponfail_main(config)
return 2 # looponfail only can get stop with ctrl-C anyway
def pytest_configure(config, __multicall__):
__multicall__.execute()
@pytest.mark.trylast
def pytest_configure(config):
if config.getoption("dist") != "no":
from xdist.dsession import DSession
session = DSession(config)