Skip to content

weaker test for enumpoly that ignores output order#590

Merged
tturocy merged 2 commits intomasterfrom
fix_enumpoly_test_for_windows
Nov 10, 2025
Merged

weaker test for enumpoly that ignores output order#590
tturocy merged 2 commits intomasterfrom
fix_enumpoly_test_for_windows

Conversation

@rahulsavani
Copy link
Copy Markdown
Member

closes #589

The tests for enumpoly_solve in mixed behaviors included a 3-player game where the order of equilibria found varies from run to run on Windows under the github tests action -- as a result, tests would sometimes pass and sometimes fail, since this test expects a pre-defined order of output equilibria.

That old test has been renamed: test_enumpoly_behavior_rational -> test_enumpoly_ordered_behavior_rational, and the new test_enumpoly_unordered_behavior_rational, which checks all found equilibria are in a pre-defined set, has been added.

@rahulsavani rahulsavani requested a review from tturocy November 8, 2025 10:35
@rahulsavani
Copy link
Copy Markdown
Member Author

I have re-run the relevant Windows test 10 times in total and it never failed. We can do some repeat runs of that on this PR too.

@rahulsavani
Copy link
Copy Markdown
Member Author

I have re-run the relevant Windows test 10 times in total and it never failed. We can do some repeat runs of that on this PR too.

OK, it's passed 10 re-runs since the PR: https://github.com/gambitproject/gambit/actions/runs/19191745733

One thing to note is that in both the ordered and unordered versions, now maxregret is set at 1e-4, rather than using the default (1e-3). The tests will probably repeatedly pass with the default regret, if we prefer to revert to that.

@tturocy tturocy merged commit e85f6ce into master Nov 10, 2025
28 checks passed
@tturocy tturocy deleted the fix_enumpoly_test_for_windows branch November 10, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TEST: enumpoly test failing on Windows with Python 3.13

2 participants