[arch-commits] Commit in httpie/trunk (PKGBUILD)
Daurnimator
daurnimator at gemini.archlinux.org
Wed May 18 10:26:37 UTC 2022
Date: Wednesday, May 18, 2022 @ 10:26:36
Author: daurnimator
Revision: 1207776
skip failing tests
1. skip tests that require package to already be installed
2. skip test that has a slightly differing error message
```
___________________________ test_stdin_read_warning ____________________________
httpbin = <pytest_httpbin.serve.Server object at 0x7f54add1b520>
@pytest.mark.requires_external_processes
@pytest.mark.skipif(is_windows, reason="Windows doesn't support select() calls into files")
def test_stdin_read_warning(httpbin):
with stdin_processes(httpbin) as (process_1, process_2):
# Wait before sending any data
time.sleep(1)
process_1.communicate(timeout=0.1, input=b"bleh\n")
try:
_, errs = process_2.communicate(timeout=MAX_RESPONSE_WAIT_TIME)
except subprocess.TimeoutExpired:
errs = b''
> assert b'> warning: no stdin data read in 0.1s' in errs
E assert b'> warning: no stdin data read in 0.1s' in b'Traceback (most recent call last):\n File "/build/httpie/src/httpie-3.2.1/httpie/__main__.py", line 19, in <module>...pie/__main__.py", line 8, in main\n from httpie.core import main\nModuleNotFoundError: No module named \'httpie\'\n'
tests/test_uploads.py:157: AssertionError
```
Modified:
httpie/trunk/PKGBUILD
----------+
PKGBUILD | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-18 10:18:03 UTC (rev 1207775)
+++ PKGBUILD 2022-05-18 10:26:36 UTC (rev 1207776)
@@ -49,6 +49,8 @@
check() {
cd $pkgname-$pkgver
- pytest --help
- PYTHONDONTWRITEBYTECODE=1 pytest tests
+ PYTHONDONTWRITEBYTECODE=1 pytest \
+ -m 'not requires_installation' \
+ -k 'not test_stdin_read_warning' \
+ tests
}
More information about the arch-commits
mailing list