Skip to content

Commit

Permalink
Fix tests on latest Python 3.13
Browse files Browse the repository at this point in the history
Related to python/cpython@c6c3d97
(python/cpython#121329), thanks to brianschubert for noticing
  • Loading branch information
hauntsaninja committed Sep 28, 2024
1 parent 26a77f9 commit 9fe0249
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mypyc/test-data/run-dicts.test
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ else:
try:
clear_during_iter(d)
except RuntimeError as e:
assert str(e) == "OrderedDict changed size during iteration"
assert str(e) in (
"OrderedDict changed size during iteration",
# Error message changed in Python 3.13 and some 3.12 patch version
"OrderedDict mutated during iteration",
)
else:
assert False

Expand Down

0 comments on commit 9fe0249

Please sign in to comment.