diff mbox series

[meta-python,1/2] python3-betamax: Leave out the live GitHub gzip test in ptest

Message ID 20261204063827.2452990-2-khem.raj@oss.qualcomm.com
State New
Headers show
Series meta-python: ptest fixes | expand

Commit Message

Khem Raj Dec. 4, 2026, 6:38 a.m. UTC
tests/regression/test_gzip_compression.py deletes its cassette in
tearDown, so every run sends a real request to
https://api.github.com/repos/github3py/fork_this/issues/1 and asserts
that the reply is gzip encoded. GitHub's error replies (404, and the
unauthenticated limit of 60 requests per hour per IP) carry no
Content-Encoding, so the test fails with

  assert r.headers.get('Content-Encoding') == 'gzip'
  AssertionError: assert None == 'gzip'

whenever the API does not return the issue. It failed in 4 of the last
12 Yoe CI runs on qemux86-64. Leave it out like test_hooks.py, which
records live httpbin.org requests.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../recipes-devtools/python/python3-betamax/run-ptest       | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-betamax/run-ptest b/meta-python/recipes-devtools/python/python3-betamax/run-ptest
index 0acad79f97..9bf5e1ce42 100644
--- a/meta-python/recipes-devtools/python/python3-betamax/run-ptest
+++ b/meta-python/recipes-devtools/python/python3-betamax/run-ptest
@@ -10,5 +10,7 @@  fi
 
 # tests/integration/test_hooks.py records live https://httpbin.org requests
 # (no cassettes are shipped for it) and fails whenever the service resets
-# the connection, so leave it out.
-pytest --automake --ignore=tests/integration/test_hooks.py
+# the connection, so leave it out. test_gzip_compression.py likewise records
+# api.github.com on every run.
+pytest --automake --ignore=tests/integration/test_hooks.py \
+    --ignore=tests/regression/test_gzip_compression.py