Closed purva-thakre closed 8 months ago
We should be able to use @pytest.mark.filterwarnings
to accomplish this: https://docs.pytest.org/en/6.2.x/warnings.html#pytest-mark-filterwarnings
More info about writing warnings filters: https://docs.python.org/3/library/warnings.html#warning-filter
Following warning is raised by pytest:
Test in question
https://github.com/unitaryfund/mitiq/blob/3457774734f9759c2a828d84ad5af3801eab23e1/mitiq/rem/tests/test_inverse_confusion_matrix.py#L187-L190
To close this issue, need to disable this warning as the test is expected to raise an error with an invalid input. https://stackoverflow.com/a/23116937