-
-
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
crash on bad stdout #412
Comments
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): can reproduce a crash with a os.write(1, mess) |
Original comment by eduardo schettino (BitBucket: schettino72, GitHub: schettino72): I reproduced the problem with python 3.3, seems it is fine with python2.7. The problem that not even a INTERNALERROR message is displayed was introduced on changeset: 3122:6d1e3a0d4746 From what I understood the "unconfigure" methods are not even called, |
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): figured the root causes, we have a rough idea of the actions to take, its too big for the bug day tho |
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42): @RonnyPfannschmidt is aiming to resolve this problem and cleanup our capturing code in a separate branch. https://bitbucket.org/RonnyPfannschmidt/pytest-capture-refactor |
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): add changelog entry: |
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): fix issue412 and other encoding issues. Streamline dupfile() into |
Original comment by Erik Bray (BitBucket: embray, GitHub: embray): So the fix for this (I think) has caused several of my tests which test distutils to break, due to a line in the distutils logger which checks for
I'm inclined to place the blame on distutils for assuming |
Originally reported by: Alexander Steinert (BitBucket: stony8, GitHub: stony8)
In one of our tests, we get bad output on stdout. We have to fix that
ourselves, sure. However, the problem with pytest is that instead of failing
only the test the whole session crashes. Here's a minimal example where the bad
output is generated by a subprocess for reasons of simplicity.
This is the behavior of pytest 2.5.1. It crashes without any notice!
Exit code is 3.
In pytest 2.3.5, the behavior was a little better. Nevertheless the session is
still over immediately. No further tests get executed, no report gets written.
Exit code is 3, too.
Why is pytest decoding captured output anyway? Wouldn't it be less error-prone
to capture it as-is (binary) and (on test failure) write is as-is?
The text was updated successfully, but these errors were encountered: