| 1 |
#!/bin/sh |
| 2 |
set -e |
| 3 |
# See https://github.com/agronholm/anyio/issues/823: some tests fail |
| 4 |
# on three archs, either flakily or consistently |
| 5 |
arch=$(dpkg --print-architecture) |
| 6 |
case $arch in |
| 7 |
armel) |
| 8 |
deselects="--deselect=tests/test_from_thread.py::TestRunAsyncFromThread::test_run_sync_from_thread_pooling" |
| 9 |
;; |
| 10 |
ppc64el) |
| 11 |
deselects="--deselect=tests/test_from_thread.py::TestRunAsyncFromThread::test_run_sync_from_thread_pooling --deselect=tests/test_to_thread.py::TestBlockingPortalProvider::test_single_thread[asyncio]" |
| 12 |
;; |
| 13 |
riscv64) |
| 14 |
deselects="--deselect=tests/test_pytest_plugin.py::test_keyboardinterrupt_during_test" |
| 15 |
;; |
| 16 |
*) |
| 17 |
deselects="" |
| 18 |
;; |
| 19 |
esac |
| 20 |
|
| 21 |
for PY in $(py3versions -s) |
| 22 |
do |
| 23 |
echo "Testing with $PY" |
| 24 |
$PY -m pytest --verbose -W ignore $deselects 2>&1 |
| 25 |
done |