-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
capture: recover from closed files #2633
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
In some cases on windows stderr capturing may fail. Pytest now | ||
attempts to recover from a capturing failure. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1159,3 +1159,6 @@ def test_pickling_and_unpickling_enocded_file(): | |
ef = capture.EncodedFile(None, None) | ||
ef_as_str = pickle.dumps(ef) | ||
pickle.loads(ef_as_str) | ||
|
||
def test_closed_handle(): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see you overwrote my update to this test, was that deliberate? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nicoddemus I am sorry about this; I thought that this had already been merged so I could trash the branch. |
||
sys.stderr.close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this code commented out?