-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
capsys not capturing on Python 2.7 #2327
Comments
Well, this is the diff that got things working: My guess is that unittest in py2.7 is doing something that makes capsys sad. Probably not worth bottoming out... |
nb: |
thansk for the followup |
@RonnyPfannschmidt - weirder still, this also works: simplistix/sybil@791fe74 ...and here we have it: d'oh. I thought a |
Import time sys.stdout differs from test time sys.stdout This is a bug in unittest, but pytest should protect you against it |
hello, first off thank you for the issue! python 2.x support has ended for pytest core. we've decided in #7296 to close the python-2-specific issues to free up some space in our backlog. however, in accordance to our python 2.7 and 3.4 support community patches will still be accepted to the |
This works on 3.5:
https://travis-ci.org/cjw296/sybil/jobs/214145869
But on 2.7, the capsys is empty:
https://travis-ci.org/cjw296/sybil/jobs/214145867#L301
https://travis-ci.org/cjw296/sybil/jobs/214145867#L314
The text was updated successfully, but these errors were encountered: