[pytest-dev] `pytest.main()` frozen by cx_freeze

Bruno Oliveira nicoddemus at gmail.com
Tue Jul 29 04:08:42 CEST 2014


Hi all,

For future reference, I created a repository with a solution at
https://github.com/nicoddemus/cx_freeze_pytest_example.

Cheers,




On Sun, Jul 27, 2014 at 12:57 AM, Bruno Oliveira <nicoddemus at gmail.com>
wrote:

> Hi all,
>
> I managed to get it to work by explicitly importing pytest and py modules
> explicitly. The version that worked for me is in the same gist link I sent
> earlier (https://gist.github.com/nicoddemus/5458ca3fc5241cedaff3), which
> I made public so others that run into the same problem can find it.
>
> Also created a PR that eliminates py.std use from pytest, although I could
> get the frozen executable to work without needing that after all. Just went
> ahead with the PR because Holger showed interest on it. :)
>
> Cheers,
>
>
> On Thu, Jul 24, 2014 at 12:24 PM, Bruno Oliveira <nicoddemus at gmail.com>
> wrote:
>
>> Hi Holger,
>>
>> On Thu, Jul 24, 2014 at 11:36 AM, holger krekel <holger at merlinux.eu>
>> wrote:
>>
>>> i think there are two ways to solve this:
>>>
>>> - find out how to make py.std work with cx_freeze
>>>   (haven't looked at that myself yet)
>>>
>>
>> I'm investigating this and will share any findings.
>>
>> - eliminate use of py.std in pytest and maybe py.
>>>   Personally, I am fine with a PR on that, probably
>>>   quite straightforward to do.
>>>
>>
>> Didn't know that could be an option; I will take a look into it,
>> shouldn't be too complicated.
>>
>> Thanks for the answer!
>>
>> Bruno
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20140728/c8caf50c/attachment.html>


More information about the Pytest-dev mailing list