<div dir="ltr">Hi Tony,<div><br></div><div>&gt; Since the tests I&#39;ve written for my application work when the application Is a .py file, should these tests also work when my application is bundled into a single-file executable, built with PyInstaller, or similar bundling tool?</div><div><br></div><div>I have the exact same requirement at work. Please see these docs for a solution:</div><div><br></div><div><a href="https://docs.pytest.org/en/latest/example/simple.html?highlight=freeze_includes#freezing-pytest">https://docs.pytest.org/en/latest/example/simple.html?highlight=freeze_includes#freezing-pytest</a><br></div><div><br></div><div>Hope that helps,</div><div>Bruno.</div><div><br></div><div class="gmail_quote"><div dir="ltr">On Tue, Oct 2, 2018 at 1:27 AM Tony Cappellini &lt;<a href="mailto:cappy2112@gmail.com">cappy2112@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div>I&#39;ve written some tests with pytest, and now need to distribute a single-file executable</div><div>on systems that do not have Python installed. I need to do this for Mac, Linux and Windows.</div><div><br></div><div>Since the tests I&#39;ve written for my application work when the application Is a .py file, should these tests also work when my application is bundled into a single-file executable, built with PyInstaller, or similar bundling tool?</div><div><br></div><div>thanks</div><div><br></div><div>Tony</div></div>
_______________________________________________<br>
testing-in-python mailing list<br>
<a href="mailto:testing-in-python@lists.idyll.org" target="_blank">testing-in-python@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/testing-in-python" rel="noreferrer" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
</blockquote></div></div>