Skip to content

Commit 6a364f2

Browse files
committed
Adjust error message that changed in Python 3.12.
python/cpython#98284 python/cpython#91578
1 parent 05f796b commit 6a364f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/server/apps/jsonrpc/test_jsonrpc_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_jsonrpc_app_build_method_abstract_raises_typeerror(
9292
# This will fail at definition time if an abstract method is not implemented
9393
with pytest.raises(
9494
TypeError,
95-
match="Can't instantiate abstract class IncompleteJSONRPCApp with abstract method build",
95+
match=".*abstract class IncompleteJSONRPCApp .* abstract method '?build'?",
9696
):
9797

9898
class IncompleteJSONRPCApp(JSONRPCApplication):

0 commit comments

Comments
 (0)