summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_class.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_class.py')
-rw-r--r--Lib/test/test_class.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/Lib/test/test_class.py b/Lib/test/test_class.py
index d1f828b..f6ec213 100644
--- a/Lib/test/test_class.py
+++ b/Lib/test/test_class.py
@@ -787,6 +787,19 @@ class ClassTests(unittest.TestCase):
Type(i)
self.assertEqual(calls, 100)
+ def test_specialization_class_call_doesnt_crash(self):
+ # gh-123185
+
+ class Foo:
+ def __init__(self, arg):
+ pass
+
+ for _ in range(8):
+ try:
+ Foo()
+ except:
+ pass
+
from _testinternalcapi import has_inline_values