Skip to content

Commit c77f49d

Browse files
mdboombrandtbucher
andcommitted
Update Lib/test/test_code.py
Co-authored-by: Brandt Bucher <[email protected]>
1 parent 7857e50 commit c77f49d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_code.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,9 @@ def test_large_lnotab(self):
447447
exec(source, d)
448448
code = d["f"].__code__
449449

450-
self.assertEqual(len(code.co_lnotab), 264208)
450+
expected = 1032 * [0, 127] + [0, 9] + ((1 << 17) - 1) * [2, 1]
451+
expected[0] = 2
452+
self.assertEqual(list(code.co_lnotab), expected)
451453

452454

453455
def isinterned(s):

0 commit comments

Comments
 (0)