From 41fcf0ed333e4d413d1c964632b49c0896cbd176 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 4 Jun 2016 17:07:51 +0200 Subject: [PATCH] Make pytest_rerunfailures work with frozen tests --- scripts/dev/freeze_tests.py | 3 +-- scripts/dev/run_frozen_tests.py | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/dev/freeze_tests.py b/scripts/dev/freeze_tests.py index 48c69d1da..db347a66a 100755 --- a/scripts/dev/freeze_tests.py +++ b/scripts/dev/freeze_tests.py @@ -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'] += [ diff --git a/scripts/dev/run_frozen_tests.py b/scripts/dev/run_frozen_tests.py index ab933f595..fc3c1cf19 100644 --- a/scripts/dev/run_frozen_tests.py +++ b/scripts/dev/run_frozen_tests.py @@ -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]))