Moved freeze_includes() to genscript
--HG-- branch : cx_freeze-support
This commit is contained in:
@@ -10,6 +10,6 @@ if __name__ == '__main__':
|
||||
version="0.1",
|
||||
description="exemple of how embedding py.test into an executable using cx_freeze",
|
||||
executables=[Executable("runtests_script.py")],
|
||||
options={"build_exe": {'includes': pytest.cx_freeze_support.includes()}},
|
||||
options={"build_exe": {'includes': pytest.freeze_includes()}},
|
||||
)
|
||||
|
||||
|
||||
@@ -36,3 +36,13 @@ def test_gen(testdir, anypython, standalone):
|
||||
result = standalone.run(anypython, testdir, p)
|
||||
assert result.ret != 0
|
||||
|
||||
|
||||
def test_freeze_includes():
|
||||
"""
|
||||
Smoke test for freeze_includes(), to ensure that it works across all
|
||||
supported python versions.
|
||||
"""
|
||||
includes = pytest.freeze_includes()
|
||||
assert len(includes) > 1
|
||||
assert '_pytest.genscript' in includes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user