From ed3ec1ddbd7aaa1a6eb2f32292d26ab87d0b3263 Mon Sep 17 00:00:00 2001 From: Brian Neradt Date: Mon, 12 Jun 2023 21:00:10 -0500 Subject: [PATCH] Python 3.11 http2_abort updates (#263) The formatting of exception strings changed in httpx for Python 3.11. This patch adjusts test expectations for this. --- test/autests/gold_tests/http2_abort/http2_abort.test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/autests/gold_tests/http2_abort/http2_abort.test.py b/test/autests/gold_tests/http2_abort/http2_abort.test.py index 20fdb130..74a0f145 100644 --- a/test/autests/gold_tests/http2_abort/http2_abort.test.py +++ b/test/autests/gold_tests/http2_abort/http2_abort.test.py @@ -110,7 +110,7 @@ 'Received RST_STREAM frame.') proxy.Streams.stdout += Testers.ContainsExpression( - 'StreamReset stream_id:1, error_code:ErrorCodes.ENHANCE_YOUR_CALM, remote_reset:True', + 'StreamReset stream_id:1, error_code:(11|ErrorCodes.ENHANCE_YOUR_CALM), remote_reset:True', 'Received RST_STREAM frame.') # @@ -182,5 +182,5 @@ 'Server connection should terminate.') proxy.Streams.stdout += Testers.ContainsExpression( - 'ConnectionTerminated error_code:ErrorCodes.STREAM_CLOSED, last_stream_id:0, additional_data:None', + 'ConnectionTerminated error_code:(5|ErrorCodes.STREAM_CLOSED), last_stream_id:0, additional_data:None', 'Received GOAWAY frame.')