#!/bin/sh

export PYTHONWARNINGS=d

python3_all="$(py3versions -s 2>/dev/null)"

TESTS_TO_EXCLUDE="not test_environment_variables and not test_load_zsh_autotitle_warning and not test_window_shell"

cp -r conftest.py examples tests $AUTOPKGTEST_TMP
cd "$AUTOPKGTEST_TMP"

for py in $python3_all; do
    echo "=== $py ==="
    $py -m pytest -k "$TESTS_TO_EXCLUDE"
done
