We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 345ad57 commit 1914acaCopy full SHA for 1914aca
1 file changed
Lib/test/test_types.py
@@ -646,6 +646,19 @@ def test_traceback_and_frame_types(self):
646
def test_capsule_type(self):
647
self.assertIsInstance(_datetime.datetime_CAPI, types.CapsuleType)
648
649
+ def test_gh131998(self):
650
+ # GH-131998: The specialized instruction would get tricked into dereferencing
651
+ # a bound "self" that didn't exist if subsequently called unbound.
652
+ def call(part):
653
+ part.pop()
654
+
655
656
+ try:
657
+ call(["a"])
658
+ call(list)
659
+ except:
660
+ pass
661
662
663
class UnionTests(unittest.TestCase):
664
0 commit comments