#!/bin/sh -ex
cd "$AUTOPKGTEST_TMP"
gunzip -c /usr/share/doc/python3-ctdopts/examples/example.py.gz > example.py
2to3 --write --nobackups --no-diffs example.py
for py in $(py3versions -r 2>/dev/null)
	do echo "Testing with $py:"
	${py} -c "import CTDopts; print(CTDopts)"
	${py} example.py
done

