Skip to content

Commit

Permalink
Allow mode == None in test_corpus
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Jul 4, 2024
1 parent a08b66f commit 369e530
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions suite/test_corpus3.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,13 @@ def test_file(fname):
with fpath.open('wb') as fout:
if (arch, mode) not in mc_modes:
print("fail", arch, mode)
if mode == "None":
mode = "0"
fout.write(mc_modes[(arch, mode)].to_bytes(1, 'little'))
fout.write(hex_data)
except Exception as e:
print(f"skipping: {hex_code} with: {e}")
continue


if __name__ == '__main__':
Expand Down

0 comments on commit 369e530

Please sign in to comment.