Skip to content

Commit

Permalink
Update ABC exception message for 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Dec 8, 2023
1 parent 914e943 commit ac79c56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/core/rest/test_pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_paginator_base_missing_implementation():

with pytest.raises(
TypeError,
match="Can't instantiate abstract class .* get_next",
match="Can't instantiate abstract class .* '?get_next'?",
):
BaseAPIPaginator(0)

Expand All @@ -52,7 +52,7 @@ def test_paginator_page_number_missing_implementation():

with pytest.raises(
TypeError,
match="Can't instantiate abstract class .* has_more",
match="Can't instantiate abstract class .* '?has_more'?",
):
BasePageNumberPaginator(1)

Expand All @@ -62,7 +62,7 @@ def test_paginator_offset_missing_implementation():

with pytest.raises(
TypeError,
match="Can't instantiate abstract class .* has_more",
match="Can't instantiate abstract class .* '?has_more'?",
):
BaseOffsetPaginator(0, 100)

Expand All @@ -72,7 +72,7 @@ def test_paginator_hateoas_missing_implementation():

with pytest.raises(
TypeError,
match="Can't instantiate abstract class .* get_next_url",
match="Can't instantiate abstract class .* '?get_next_url'?",
):
BaseHATEOASPaginator()

Expand Down

0 comments on commit ac79c56

Please sign in to comment.