Skip to content

Commit

Permalink
Update tests/test_init.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
  • Loading branch information
bdraco and webknjaz authored Oct 6, 2024
1 parent be1db0e commit 792d045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 792d045

Please sign in to comment.