File: python3

package info (click to toggle)
imbalanced-learn 0.12.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,160 kB
  • sloc: python: 17,221; sh: 481; makefile: 187; javascript: 50
file content (19 lines) | stat: -rwxr-xr-x 420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -efu

pys="$(py3versions -sv 2>/dev/null)"

# These exclusions should be kept in sync with debian/rules
exclude_tests="not test_rusboost"
if dpkg-architecture -e armhf 2>/dev/null; then
	exclude_tests="$exclude_tests and not test_common"
fi

TMP="$(mktemp -d)"
trap "rm -r \"$TMP\"" EXIT
HOME="$TMP"
export HOME

for py in $pys; do
    python$py -m pytest -m 'not network' -s -k "$exclude_tests" 2>&1
done