8000 bpo-37223, test_io: silence last 'Exception ignored in:' by vstinner · Pull Request #14029 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-37223, test_io: silence last 'Exception ignored in:' #14029

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

Merged
merged 1 commit into from
Jun 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
5 changes: 5 additions & 0 deletions Lib/test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -2070,6 +2070,11 @@ def writer_close():

# Silence destructor error
writer.close = lambda: None
writer = None

with support.catch_unraisable_exception():
pair = None
support.gc_collect()

def test_reader_writer_close_error_on_close(self):
def reader_close():
Expand Down
0