schrodinger.test.pytest.warnings module

Turn existing python warnings into failures, for use in pytest. Uses the internals of the cpython warning module to modify existing warning filters to change warnings.filterwarnings action into errors.

schrodinger.test.pytest.warnings.mark_warnings_as_errors()[source]

Modify existing warning filters using python internals to mark warnings as errors, causing them to raise as pytest errors. Does not apply to subprocesses.