Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: httpie/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bb4ce6e71565ca6344965c6c0f9985658c006b71
Choose a base ref
..
head repository: httpie/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bbdb20c1e7f35e0d2f703cea789b290ab2710b8f
Choose a head ref
Showing with 8 additions and 1 deletion.
  1. +8 −1 tests/test_h2n3.py
9 changes: 8 additions & 1 deletion tests/test_h2n3.py
Original file line number Diff line number Diff line change
@@ -80,7 +80,14 @@ def test_disable_all_error_http(remote_httpbin):
tolerate_error_exit_status=True,
)

assert 'No compatible protocol are enabled to emit request. You currently are connected using TCP Unencrypted and must have HTTP/1.1 or/and HTTP/2 enabled to pursue.' in r.stderr
try:
import qh3
except ImportError:
# that branch means that the user does not have HTTP/3
# so, the message says that he disabled everything.
assert 'You disabled every supported protocols.' in r.stderr
else:
assert 'No compatible protocol are enabled to emit request. You currently are connected using TCP Unencrypted and must have HTTP/1.1 or/and HTTP/2 enabled to pursue.' in r.stderr


@pytest.fixture