Skip to content

[3.13] gh-122864: Fix a test_funcattrs.test___builtins__ when executing directly (GH-124845) #124884

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
Oct 3, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Oct 2, 2024

Previously when executing test_functattrs.test___builtins__ directly, it failed because the fact, that __builtins__ is refers to the built-in module builtins while it's expects a __builtins__.__dict__. But when this test is being run from another module, then __builtins__ is refers to builtins.__dict__. Now this part of the behaviour is covered.

(cherry picked from commit 8fbf10d)

Co-authored-by: Mark Byrne [email protected]
Co-authored-by: Victor Stinner [email protected]

…uting directly (pythonGH-124845)

Previously when executing ``test_functattrs.test___builtins__`` directly, it failed because the fact, that ``__builtins__`` is refers to the built-in module ``builtins`` while it's expects a ``__builtins__.__dict__``. But when this test is being run from another module, then ``__builtins__`` is refers to ``builtins.__dict__``. Now this part of the behaviour is covered.
---------

(cherry picked from commit 8fbf10d)

Co-authored-by: Mark Byrne <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
@Yhg1s Yhg1s merged commit aa6cf9b into python:3.13 Oct 3, 2024
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants