#!/bin/sh
set -efu

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

cp -a tests "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"

for py in $pys; do
	echo "=== $py ==="
	$py -m pytest tests --doctest-modules -o "doctest_optionflags=ALLOW_UNICODE ELLIPSIS"
done
