From ac79c566d162635dc4ca325671b059b85de4b256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= Date: Wed, 29 Nov 2023 00:32:49 -0600 Subject: [PATCH] Update ABC exception message for 3.12 --- tests/core/rest/test_pagination.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/core/rest/test_pagination.py b/tests/core/rest/test_pagination.py index 23dce98416..09e9d04b2f 100644 --- a/tests/core/rest/test_pagination.py +++ b/tests/core/rest/test_pagination.py @@ -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) @@ -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) @@ -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) @@ -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()