Skip to content

Commit

Permalink
Change test_slots to work with Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Apr 14, 2024
1 parent 7626d35 commit 6834494
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,8 @@ def __init__(self, number):
instance = cls(1)
with pytest.raises(AttributeError) as e:
instance.new_attribute = 2
assert (
str(e.value)
== f"'{cls.__name__}' object has no attribute 'new_attribute'"
assert str(e.value).startswith(
f"'{cls.__name__}' object has no attribute 'new_attribute'"
)


Expand Down

0 comments on commit 6834494

Please sign in to comment.