diff --git a/tests/unit/test_exceptions.py b/tests/unit/test_exceptions.py index 4a2c7186..2ffd8fa5 100644 --- a/tests/unit/test_exceptions.py +++ b/tests/unit/test_exceptions.py @@ -60,5 +60,5 @@ def test_different_texts_are_not_equal(self): class TestNamespacePackageEncountered: def test_deprecated_access(self): - with pytest.warns(DeprecationWarning): + with pytest.warns(DeprecationWarning, match="NamespacePackageEncountered is deprecated"): exceptions.NamespacePackageEncountered