Dag Sverre Seljebotn 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. >
Also, going offtopic for the benefit of anyone who might struggle with the fcntl module: flock is bad. lockf is good. At least in the context of programming on a cluster. (Yes, there are two of them, and I wasted some hours before I discovered that.) -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
