| 1 |
#!/bin/sh |
| 2 |
set -efu |
| 3 |
|
| 4 |
export PYTHONWARNINGS=d |
| 5 |
# Use patched hypercorn; see https://github.com/urllib3/urllib3/issues/3334 |
| 6 |
export PYTHONPATH=$(pwd)/debian/vendor |
| 7 |
# Use longer timeouts, see https://github.com/urllib3/urllib3/issues/3164 |
| 8 |
export CI=1 |
| 9 |
|
| 10 |
python3_all="$(py3versions -s 2>/dev/null)" |
| 11 |
|
| 12 |
cp -r dummyserver test "$AUTOPKGTEST_TMP/" |
| 13 |
cd "$AUTOPKGTEST_TMP" |
| 14 |
|
| 15 |
for py in $python3_all; do |
| 16 |
echo "=== $py ===" |
| 17 |
$py -m pytest --verbose -m 'not requires_network' \ |
| 18 |
--deselect test/test_connection.py::TestConnection::test_recent_date \ |
| 19 |
--deselect test/test_response.py::TestResponse::test_chunked_decoding_gzip_swallow_garbage \ |
| 20 |
--deselect 'test/test_response.py::TestResponse::test_read_chunked_with_trailing_data_does_not_hang[gzip]' |
| 21 |
done |