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).
  • Loading branch information
serhiy-storchaka authored and adorilson committed Mar 11, 2021
1 parent 5f0dd9a commit 23fe347
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 23fe347

Please sign in to comment.