[pypy-dev] autopath/conftest/whatsoever bug?

Christian Tismer tismer at stackless.com
Mon Mar 20 03:20:06 CET 2006

Hi Armin,

> On Thu, Mar 16, 2006 at 05:33:31PM -0800, Christian Tismer wrote:
>> But when I then run my test actually with the --view option,
>> this option is simply ignored. No error message, the test
>> runs, but no PyGame window.
> It's because the option is stored in the conftest module imported from
> the *copied* file, but then the test itself does "from pypy import
> conftest", which gets a new copy of the module, this time from the
> *original* file and with all options set to their defaults.
> A way to get this right is to create your own conftest.py that imports
> the one from PyPy, instead of copying it:
>     from pypy.conftest import *

Ahh, that's most interesting.
It works nicely!
You are just a feakin' genious

ciao - chris

More information about the Pypy-dev mailing list