#!/bin/sh

set -eu

cp -r tests "$AUTOPKGTEST_TMP/"

cd "$AUTOPKGTEST_TMP"

# Do not run nearley tests
# (see https://bugs.debian.org/941657#22 for background information)
rm -rf tests/test_nearley

for python in $(py3versions -i); do
	PYTHONWARNINGS=d $python -m unittest discover -v tests 2>&1
done
