]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-122864: Fix a ``test_funcattrs.test___builtins__`` when executing directly...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 3 Oct 2024 16:26:15 +0000 (18:26 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Oct 2024 16:26:15 +0000 (09:26 -0700)
commitaa6cf9b402ab5e9d6fd1def451bf25daf5fcd1ff
treef309adcd01a4b3db23a666adaebfd4bc71937200
parent45dedab674e146cd93d2fa90579317a7944f0e73
[3.13] gh-122864: Fix a ``test_funcattrs.test___builtins__`` when executing directly (GH-124845) (#124884)

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