]> granicus.if.org Git - python/commit
bpo-37223, test_io: silence last 'Exception ignored in:' (GH-14029)
authorVictor Stinner <vstinner@redhat.com>
Wed, 12 Jun 2019 21:57:11 +0000 (23:57 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2019 21:57:11 +0000 (23:57 +0200)
commit913fa1c8245d1cde6edb4254f4fb965cc91786ef
treed7d046fbad65a7e268c228fe548b2f669d72b0f0
parent0d1942774a70d561dbaaa980742dd0927e8aa51a
bpo-37223, test_io: silence last 'Exception ignored in:' (GH-14029)

Use catch_unraisable_exception() to ignore 'Exception ignored in:'
error when the internal BufferedWriter of the BufferedRWPair is
destroyed. The C implementation doesn't give access to the
internal BufferedWriter, so just ignore the warning instead.
Lib/test/test_io.py