]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-122864: Fix a ``test_funcattrs.test___builtins__`` when executing directly...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 2 Oct 2024 10:36:54 +0000 (12:36 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Oct 2024 10:36:54 +0000 (10:36 +0000)
commitcceb25c5033bce5d19311d63f6943215a1a27283
tree57c825aba53efb6a7ce6a0404f71d5f9d008b60c
parent72bbebdfd9263dcf11423518aaeb61128dc4b43f
[3.12] gh-122864: Fix a ``test_funcattrs.test___builtins__`` when executing directly (GH-124845) (#124885)

gh-122864: Fix a ``test_funcattrs.test___builtins__`` when executing directly (GH-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 8fbf10d6cfd9c69ffcc1f80fa0c5f33785197af7)

Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_funcattrs.py