Skip to content

Commit

Permalink
Update 'magic testing number' for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiirola committed Nov 27, 2023
1 parent f6b18e8 commit 6b58e69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyomo/core/tests/unit/test_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1822,8 +1822,9 @@ def run_walker(self, walker):
cases = []
else:
# 3 sufficed through Python 3.10, but appeared to need to be
# raised to 5 for recent 3.11 builds (3.11.2)
cases = [(0, ""), (5, warn_msg)]
# raised to 5 for Python 3.11 builds (3.11.2), and again to
# 10 for Python 3.12 builds (3.12.0)
cases = [(0, ""), (10, warn_msg)]

head_room = sys.getrecursionlimit() - get_stack_depth()
for n, msg in cases:
Expand Down

0 comments on commit 6b58e69

Please sign in to comment.