File: pytest

package info (click to toggle)
debugpy 1.6.6%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,264 kB
  • sloc: python: 13,833; sh: 244; makefile: 25
file content (22 lines) | stat: -rwxr-xr-x 624 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/bash

set -e

PYS=$(py3versions -s)

# Many, many tests currently fail under Python 3.11; we simply exclude
# them all, in the knowledge that this package is not fully Python 3.11
# compatible
EXCLUSIONS=$(debian/get_test_exclusions autopkgtest)

cp -a pytest.ini tests "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"

for py in $PYS
do
    echo "Testing with $py:"
    # Some tests are slightly flaky, so we run the suite up to three times
    # (It would be nice to make this more efficient as in the spyder package)
    $py -m pytest $EXCLUSIONS || $py -m pytest -n1 $EXCLUSIONS || \
	$py -m pytest -n1 $EXCLUSIONS
done