summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_collections.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_collections.py')
-rw-r--r--Lib/test/test_collections.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py
index a1ca958..befb7ab 100644
--- a/Lib/test/test_collections.py
+++ b/Lib/test/test_collections.py
@@ -681,6 +681,11 @@ class TestNamedTuple(unittest.TestCase):
self.assertEqual(np.x, 1)
self.assertEqual(np.y, 2)
+ def test_new_builtins_issue_43102(self):
+ self.assertEqual(
+ namedtuple('C', ()).__new__.__globals__['__builtins__'],
+ {})
+
################################################################################
### Abstract Base Classes