Skip to content

Conversation

@soxofaan
Copy link
Member

@soxofaan soxofaan commented Nov 14, 2024

Attempt to harden the job manager tests: fail hard on any warning (except our own deprecation warnings)

related to #641, #656



@pytest.mark.filterwarnings("default:.*`output_file` argument is deprecated.*:DeprecationWarning")
@pytest.mark.filterwarnings("error")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently it is also possible to set these markers at module level, (instead of only on this test class), with the pytestmark module global var according to https://docs.pytest.org/en/stable/how-to/capture-warnings.html#pytest-mark-filterwarnings

@soxofaan soxofaan changed the title job manager tests: fail on all warnings job manager tests: fail on any warning Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants