Debian Codegraph @

debian/tests/installed-test

raw symbols SCIP
1 #!/bin/sh
2 set -e
3
4 pys="$(py3versions -s 2> /dev/null)"
5
6 cd $AUTOPKGTEST_TMP
7
8 cat <<EOF > test_monty.py
9 from monty.design_patterns import singleton
10
11 @singleton
12 class Test():
13 def __init__(self):
14 self.test = "Debian"
15
16 test = Test()
17 test2 = Test()
18
19 test.test == test2.test
20
21 id(test) == id(test2)
22
23 test.test = "Hello World"
24 test.test == test2.test
25
26 EOF
27
28 for py in $pys; do
29 echo "testing $py"
30 $py test_monty.py
31 done