Skip to content

Commit

Permalink
bpo-42734: Fix crasher bogus_code_obj.py (pythonGH-23939)
Browse files Browse the repository at this point in the history
It did not work because the signature of code object constructor
was changed. Also, it used old format of bytecode (pre-wordcode).
(cherry picked from commit 954a742)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
serhiy-storchaka authored and miss-islington committed Dec 25, 2020
1 parent d5aadb2 commit c69b645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/crashers/bogus_code_obj.py
Expand Up @@ -14,6 +14,6 @@

import types

co = types.CodeType(0, 0, 0, 0, 0, b'\x04\x71\x00\x00',
co = types.CodeType(0, 0, 0, 0, 0, 0, b'\x04\x00\x71\x00',
(), (), (), '', '', 1, b'')
exec(co)

0 comments on commit c69b645

Please sign in to comment.