Skip to content

Commit 2a3457d

Browse files
Update ABC exception message for 3.12
1 parent b4e4794 commit 2a3457d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/core/rest/test_pagination.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_paginator_base_missing_implementation():
2727

2828
with pytest.raises(
2929
TypeError,
30-
match="Can't instantiate abstract class .* get_next",
30+
match="Can't instantiate abstract class .* '?get_next'?",
3131
):
3232
BaseAPIPaginator(0)
3333

@@ -52,7 +52,7 @@ def test_paginator_page_number_missing_implementation():
5252

5353
with pytest.raises(
5454
TypeError,
55-
match="Can't instantiate abstract class .* has_more",
55+
match="Can't instantiate abstract class .* '?has_more'?",
5656
):
5757
BasePageNumberPaginator(1)
5858

@@ -62,7 +62,7 @@ def test_paginator_offset_missing_implementation():
6262

6363
with pytest.raises(
6464
TypeError,
65-
match="Can't instantiate abstract class .* has_more",
65+
match="Can't instantiate abstract class .* '?has_more'?",
6666
):
6767
BaseOffsetPaginator(0, 100)
6868

@@ -72,7 +72,7 @@ def test_paginator_hateoas_missing_implementation():
7272

7373
with pytest.raises(
7474
TypeError,
75-
match="Can't instantiate abstract class .* get_next_url",
75+
match="Can't instantiate abstract class .* '?get_next_url'?",
7676
):
7777
BaseHATEOASPaginator()
7878

0 commit comments

Comments
 (0)