#!/bin/sh set -e pys="$(py3versions -s 2> /dev/null)" cd $AUTOPKGTEST_TMP cat < test_monty.py from monty.design_patterns import singleton @singleton class Test(): def __init__(self): self.test = "Debian" test = Test() test2 = Test() test.test == test2.test id(test) == id(test2) test.test = "Hello World" test.test == test2.test EOF for py in $pys; do echo "testing $py" $py test_monty.py done