File: python3-unittest

package info (click to toggle)
convertdate 2.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 472 kB
  • sloc: python: 4,440; makefile: 33; sh: 11
file content (13 lines) | stat: -rwxr-xr-x 450 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -e -u -x
cp -r tests/ "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP/"
export PYTHONWARNINGS=d
for py in $(py3versions -s); do
  echo "----------------------------------------------"
  echo "Testing with $py"
  echo "----------------------------------------------"
  # text mode file opening is locale dependent so try both ASCII and UTF-8
  LC_ALL=C $py -m unittest discover --verbose
  LC_ALL=C.UTF-8 $py -m unittest discover --verbose
done