Fix handling of pytest-benchmark for frozen tests

This commit is contained in:
Florian Bruhin 2017-02-19 20:11:46 +01:00
parent f772ccb203
commit a34bc929ac
2 changed files with 4 additions and 3 deletions

View File

@ -55,8 +55,7 @@ def get_build_exe_options():
opts = freeze.get_build_exe_options(skip_html=True)
opts['includes'] += pytest.freeze_includes()
opts['includes'] += ['unittest.mock', 'PyQt5.QtTest', 'hypothesis', 'bs4',
'httpbin', 'jinja2.ext', 'cheroot', 'pstats', 'queue',
'pytest_benchmark']
'httpbin', 'jinja2.ext', 'cheroot', 'pstats', 'queue']
httpbin_dir = os.path.dirname(httpbin.__file__)
opts['include_files'] += [

View File

@ -31,8 +31,10 @@ import pytest_faulthandler
import pytest_xvfb
import pytest_rerunfailures
import pytest_warnings
import pytest_benchmark
sys.exit(pytest.main(plugins=[pytestqt.plugin, pytest_mock,
pytest_catchlog, pytest_instafail,
pytest_faulthandler, pytest_xvfb,
pytest_rerunfailures, pytest_warnings]))
pytest_rerunfailures, pytest_warnings,
pytest_benchmark]))