Skip to content

test: Update simulator.time deprecation test to expect FutureWarning#2922

Merged
EwoutH merged 1 commit intomesa:mainfrom
EwoutH:time_depr
Dec 4, 2025
Merged

test: Update simulator.time deprecation test to expect FutureWarning#2922
EwoutH merged 1 commit intomesa:mainfrom
EwoutH:time_depr

Conversation

@EwoutH
Copy link
Copy Markdown
Member

@EwoutH EwoutH commented Dec 4, 2025

Summary

Updates the test_simulator_time_deprecation test to expect FutureWarning instead of DeprecationWarning, aligning with the changes made in PR #2905.

Bug / Issue

The test was failing after PR #2905 because it expected a DeprecationWarning, but the actual warning emitted is now a FutureWarning. This change was part of Mesa's new deprecation policy to make warnings visible to users by default.

PRs #2903 and #2905 were in development simultaneously, which resulted in this test not being updated when the deprecation warning policy changed.

Change the test_simulator_time_deprecation test to expect FutureWarning instead of DeprecationWarning, matching the actual warning type emitted.
@EwoutH EwoutH added the testing Release notes label label Dec 4, 2025
@EwoutH EwoutH merged commit 04752b2 into mesa:main Dec 4, 2025
11 of 13 checks passed
@EwoutH EwoutH deleted the time_depr branch December 4, 2025 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Release notes label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant