Make pytest_rerunfailures work with frozen tests

This commit is contained in:
Florian Bruhin 2016-06-04 17:07:51 +02:00
parent 4054992583
commit 41fcf0ed33
2 changed files with 4 additions and 3 deletions

View File

@ -56,8 +56,7 @@ def get_build_exe_options():
opts['includes'] += pytest.freeze_includes() # pylint: disable=no-member
opts['includes'] += ['unittest.mock', 'PyQt5.QtTest', 'hypothesis', 'bs4',
'httpbin', 'jinja2.ext', 'cherrypy.wsgiserver',
'cherrypy.wsgiserver.wsgiserver3', 'pstats',
'pytest_rerunfailures']
'cherrypy.wsgiserver.wsgiserver3', 'pstats']
httpbin_dir = os.path.dirname(httpbin.__file__)
opts['include_files'] += [

View File

@ -29,7 +29,9 @@ import pytest_catchlog
import pytest_instafail
import pytest_faulthandler
import pytest_xvfb
import pytest_rerunfailures
sys.exit(pytest.main(plugins=[pytestqt.plugin, pytest_mock,
pytest_catchlog, pytest_instafail,
pytest_faulthandler, pytest_xvfb]))
pytest_faulthandler, pytest_xvfb,
pytest_rerunfailures]))