Moved freeze_includes() to genscript

--HG--
branch : cx_freeze-support
This commit is contained in:
Bruno Oliveira
2014-08-11 20:03:14 -03:00
parent 3c649cf91d
commit d2903507d8
5 changed files with 67 additions and 59 deletions
+1 -1
View File
@@ -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()}},
)
+10
View File
@@ -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