On 5 May 2010 14:06, Dag Sverre Seljebotn <[email protected]> wrote: > Lisandro Dalcin wrote: >> I'm in the process of adding some pxd's in Cython/Includes for POSIX >> (up to now, I've implemented 'fcntl' and 'unistd'). I want to add some >> tests, I've started implementing a context manager for temporarily >> stdout redirection to /dev/null in order to call a noisy, external C >> function with lots of hard-wired 'printf' calls. >> >> But these tests will not run on Windows. Could any of you fix >> runtests.py to filter testcases with 'posix' in their name if >> os.name()!='posix' ? I could do it myself after some research, but I >> bet Stefan/Robert can implement it in 5 seconds :-) After that, I >> could push my POSIX stuff. > > I don't have time now, but you could add the pattern to EXT_DEP_MODULES > at the top of runtests.py; conditional on the import of the fcntl module. >
Yes, I now see that's the way, though I'll make it conditional on the import of the 'posix' module. -- Lisandro Dalcin --------------- CIMEC (INTEC/CONICET-UNL) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo Tel: +54-342-4511594 (ext 1011) Tel/Fax: +54-342-4511169 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
