Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-18748: _pyio.IOBase emits unraisable exception#13512

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 3 commits intopython:masterfromvstinner:pyio_destructor
May 23, 2019
Merged

bpo-18748: _pyio.IOBase emits unraisable exception#13512

vstinner merged 3 commits intopython:masterfromvstinner:pyio_destructor
May 23, 2019

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedMay 22, 2019
edited
Loading

In development (-X dev) mode and in a debug build, IOBase finalizer
of the _pyio module now logs the exception if the close() method
fails. The exception is ignored silently by default in release build.

test_io: test_error_through_destructor() now uses
support.catch_unraisable_exception() rather than capturing stderr.

https://bugs.python.org/issue18748

In development (-X dev) mode and in a debug build, IOBase finalizerof the _pyio module now logs the exception if the close() methodfails. The exception is ignored silently by default in release build.test_io: test_error_through_destructor() now usessupport.catch_unraisable_exception() rather than capturing stderr.
@vstinnervstinner changed the titlebpo-36918: _pyio.IOBase emits unraisable exceptionbpo-18748: _pyio.IOBase emits unraisable exceptionMay 22, 2019
@vstinner
Copy link
MemberAuthor

Ah, test_io failed on Travis CI. Example:

FAIL: test_error_through_destructor (test.test_io.CBufferedReaderTest)----------------------------------------------------------------------Traceback (most recent call last):  File "/home/travis/build/python/cpython/Lib/test/test_io.py", line 1107, in test_error_through_destructor    self.assertIsNotNone(cm.unraisable)AssertionError: unexpectedly None

@vstinnervstinner merged commitbc2aa81 intopython:masterMay 23, 2019
@vstinnervstinner deleted the pyio_destructor branchMay 23, 2019 01:45
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@vstinner@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp