Debian Codegraph @

debian/tests/import-private-module

raw symbols SCIP
1 #!/bin/sh
2
3 set -e -u
4
5 cd "$AUTOPKGTEST_TMP"
6
7 # write python test file
8 cat <<EOF > import-private-module.py
9
10 import sys
11 sys.path.insert(0, '/usr/share/nfoview')
12
13 import nfoview
14 print(nfoview)
15 EOF
16
17 # run test for all supported python3 versions
18 for py in $(py3versions -s); do
19 echo "Loading module with $py:"
20 xvfb-run -a $py import-private-module.py
21 done