File: upstreamtestsuite3

package info (click to toggle)
python-anyio 4.11.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,304 kB
  • sloc: python: 16,605; sh: 21; makefile: 9
file content (25 lines) | stat: -rwxr-xr-x 779 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
set -e
# See https://github.com/agronholm/anyio/issues/823: some tests fail
# on three archs, either flakily or consistently
arch=$(dpkg --print-architecture)
case $arch in
    armel)
	deselects="--deselect=tests/test_from_thread.py::TestRunAsyncFromThread::test_run_sync_from_thread_pooling"
	;;
    ppc64el)
	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]"
	;;
    riscv64)
	deselects="--deselect=tests/test_pytest_plugin.py::test_keyboardinterrupt_during_test"
	;;
    *)
	deselects=""
	;;
esac

for PY in $(py3versions -s)
do
    echo "Testing with $PY"
    $PY -m pytest --verbose -W ignore $deselects 2>&1
done