Skip to content

Commit

Permalink
Python 3.11 http2_abort updates (#263)
Browse files Browse the repository at this point in the history
The formatting of exception strings changed in httpx for Python 3.11.
This patch adjusts test expectations for this.
  • Loading branch information
bneradt authored Jun 13, 2023
1 parent 1699ada commit ed3ec1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/autests/gold_tests/http2_abort/http2_abort.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')

#
Expand Down Expand Up @@ -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.')

0 comments on commit ed3ec1d

Please sign in to comment.