FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.14] gh-113329: Catch OSError in doctest finder and document that inspect.getsourcefile/getfile can raise OSError (GH-113335) by miss-islington · Pull Request #155659 · python/cpython · GitHub

Repository navigation

[3.14] gh-113329: Catch OSError in doctest finder and document that inspect.getsourcefile/getfile can raise OSError (GH-113335) - #155659

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-025e7d2-3.14
Aug 13, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-025e7d2-3.14

Conversation

Copy link
Copy Markdown
Contributor

Fixes GH-113329, which occurs when running doctests in a class docstring in a REPL environment.
Since Python 3.10, an OSError is raised when the class source code cannot be found.
(cherry picked from commit 025e7d2)

Co-authored-by: Sten Wessel sten@stenwessel.nl

…spect.getsourcefile/getfile can raise OSError (pythonGH-113335)

Fixes pythonGH-113329, which occurs when running doctests in a class docstring in a REPL environment.
Since Python 3.10, an OSError is raised when the class source code cannot be found.
(cherry picked from commit 025e7d2)

Co-authored-by: Sten Wessel <sten@stenwessel.nl>

python-cla-bot Bot commented Aug 13, 2026 •
edited
Loading

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

serhiy-storchaka merged commit ed58355 into python:3.14 Aug 13, 2026
51 checks passed
miss-islington deleted the backport-025e7d2-3.14 branch August 13, 2026 09:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL