[py-dev] issues with stdout redirection, ctypes and py.test
py-dev at tolomea.com
Fri Aug 7 10:53:58 CEST 2009
My python code talks to a C library via ctypes and it in turn prints
debug to stdout.
And we test this with py.test, which by itself works just fine.
But if at the bash prompt we then redirect the output of py.test to a
file suddenly the C debug starts propagating out of py.test.
We generally run py.test with -v and -x, but removing those didn't
change the behavior at all.
I'm at a bit of loss as to where to begin with this one, any suggestions?
gordonw at gohma:~$ uname -a
Linux gohma 2.6.28-14-generic #47-Ubuntu SMP Sat Jul 25 00:28:35 UTC
2009 i686 GNU/Linux
gordonw at gohma:~$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import py
More information about the Pytest-dev