Fix handling of pytest-benchmark for frozen tests
This commit is contained in:
parent
f772ccb203
commit
a34bc929ac
@ -55,8 +55,7 @@ def get_build_exe_options():
|
|||||||
opts = freeze.get_build_exe_options(skip_html=True)
|
opts = freeze.get_build_exe_options(skip_html=True)
|
||||||
opts['includes'] += pytest.freeze_includes()
|
opts['includes'] += pytest.freeze_includes()
|
||||||
opts['includes'] += ['unittest.mock', 'PyQt5.QtTest', 'hypothesis', 'bs4',
|
opts['includes'] += ['unittest.mock', 'PyQt5.QtTest', 'hypothesis', 'bs4',
|
||||||
'httpbin', 'jinja2.ext', 'cheroot', 'pstats', 'queue',
|
'httpbin', 'jinja2.ext', 'cheroot', 'pstats', 'queue']
|
||||||
'pytest_benchmark']
|
|
||||||
|
|
||||||
httpbin_dir = os.path.dirname(httpbin.__file__)
|
httpbin_dir = os.path.dirname(httpbin.__file__)
|
||||||
opts['include_files'] += [
|
opts['include_files'] += [
|
||||||
|
@ -31,8 +31,10 @@ import pytest_faulthandler
|
|||||||
import pytest_xvfb
|
import pytest_xvfb
|
||||||
import pytest_rerunfailures
|
import pytest_rerunfailures
|
||||||
import pytest_warnings
|
import pytest_warnings
|
||||||
|
import pytest_benchmark
|
||||||
|
|
||||||
sys.exit(pytest.main(plugins=[pytestqt.plugin, pytest_mock,
|
sys.exit(pytest.main(plugins=[pytestqt.plugin, pytest_mock,
|
||||||
pytest_catchlog, pytest_instafail,
|
pytest_catchlog, pytest_instafail,
|
||||||
pytest_faulthandler, pytest_xvfb,
|
pytest_faulthandler, pytest_xvfb,
|
||||||
pytest_rerunfailures, pytest_warnings]))
|
pytest_rerunfailures, pytest_warnings,
|
||||||
|
pytest_benchmark]))
|
||||||
|
Loading…
Reference in New Issue
Block a user