diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-12-25 15:03:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-25 15:03:37 (GMT) |
commit | 954a7427ba9c2d02faed32c02090caeca873aeca (patch) | |
tree | a925928b34121f5f6edf2e4eba930115dd0d7433 | |
parent | 7f162e867c674f57c308a87fffcdcca3540c8933 (diff) | |
download | cpython-954a7427ba9c2d02faed32c02090caeca873aeca.zip cpython-954a7427ba9c2d02faed32c02090caeca873aeca.tar.gz cpython-954a7427ba9c2d02faed32c02090caeca873aeca.tar.bz2 |
bpo-42734: Fix crasher bogus_code_obj.py (GH-23939)
It did not work because the signature of code object constructor
was changed. Also, it used old format of bytecode (pre-wordcode).
-rw-r--r-- | Lib/test/crashers/bogus_code_obj.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/crashers/bogus_code_obj.py b/Lib/test/crashers/bogus_code_obj.py index 198d229..e71b358 100644 --- a/Lib/test/crashers/bogus_code_obj.py +++ b/Lib/test/crashers/bogus_code_obj.py @@ -14,6 +14,6 @@ the user build or load random bytecodes anyway. Otherwise, this is a 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) |