mirror of
https://github.com/curl/curl.git
synced 2026-08-26 10:43:32 +03:00
pytest: fix conditions for test_02_28
- allow 02_28 to run in HTTP/1.1 without H2 support again.
Follow-up to 3752de465d #19412
- fix to skip 02_28 for all protocols for curl without compression
support (either zlib, brotli or ztsd).
Closes #19458
This commit is contained in:
parent
cdb7ac11b4
commit
b81d30ade3
2 changed files with 9 additions and 1 deletions
|
|
@ -406,6 +406,12 @@ class Env:
|
|||
def have_h3_curl() -> bool:
|
||||
return 'http3' in Env.CONFIG.curl_props['features']
|
||||
|
||||
@staticmethod
|
||||
def have_compressed_curl() -> bool:
|
||||
return 'brotli' in Env.CONFIG.curl_props['libs'] or \
|
||||
'zlib' in Env.CONFIG.curl_props['libs'] or \
|
||||
'zstd' in Env.CONFIG.curl_props['libs']
|
||||
|
||||
@staticmethod
|
||||
def curl_uses_lib(libname: str) -> bool:
|
||||
return libname.lower() in Env.CONFIG.curl_props['libs']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue