From 792d04514290502862bd7cc1aa8e35635ead2c23 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 6 Oct 2024 13:26:48 -0500 Subject: [PATCH] Update tests/test_init.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) --- tests/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_init.py b/tests/test_init.py index 63a7503..c3c278d 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -28,6 +28,6 @@ def test_public_api_is_in_all(): def test_importing_invalid_attr_raises(): """Verify importing an invalid attribute raises an AttributeError.""" - match = r"module 'propcache' has no attribute 'invalid_attr'" + match = r"^module 'propcache' has no attribute 'invalid_attr'$" with pytest.raises(AttributeError, match=match): propcache.invalid_attr