Skip to content

Commit

Permalink
Fix tests on latest Python 3.13 (and 3.12) (#17849)
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 authored Sep 28, 2024
1 parent ca28425 commit 1a2c8e2
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 1a2c8e2

Please sign in to comment.