Skip to content

Commit ed3ec1d

Browse files
authored
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.
1 parent 1699ada commit ed3ec1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/autests/gold_tests/http2_abort/http2_abort.test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
'Received RST_STREAM frame.')
111111

112112
proxy.Streams.stdout += Testers.ContainsExpression(
113-
'StreamReset stream_id:1, error_code:ErrorCodes.ENHANCE_YOUR_CALM, remote_reset:True',
113+
'StreamReset stream_id:1, error_code:(11|ErrorCodes.ENHANCE_YOUR_CALM), remote_reset:True',
114114
'Received RST_STREAM frame.')
115115

116116
#
@@ -182,5 +182,5 @@
182182
'Server connection should terminate.')
183183

184184
proxy.Streams.stdout += Testers.ContainsExpression(
185-
'ConnectionTerminated error_code:ErrorCodes.STREAM_CLOSED, last_stream_id:0, additional_data:None',
185+
'ConnectionTerminated error_code:(5|ErrorCodes.STREAM_CLOSED), last_stream_id:0, additional_data:None',
186186
'Received GOAWAY frame.')

0 commit comments

Comments
 (0)