aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_code.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_code.py')
-rw-r--r--Lib/test/test_code.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_code.py b/Lib/test/test_code.py
index 93f3a5833cb..dcdd15a43e6 100644
--- a/Lib/test/test_code.py
+++ b/Lib/test/test_code.py
@@ -254,10 +254,11 @@ class CodeTest(unittest.TestCase):
return x
code = func.__code__
- # different co_name, co_varnames, co_consts
+ # Different co_name, co_varnames, co_consts.
+ # Must have the same number of constants and
+ # variables or we get crashes.
def func2():
y = 2
- z = 3
return y
code2 = func2.__code__