File: import-private-module

package info (click to toggle)
nfoview 2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 592 kB
  • sloc: python: 1,284; makefile: 114; sh: 94
file content (21 lines) | stat: -rwxr-xr-x 354 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e -u

cd "$AUTOPKGTEST_TMP"

# write python test file
cat <<EOF > import-private-module.py

import sys
sys.path.insert(0, '/usr/share/nfoview')

import nfoview
print(nfoview)
EOF

# run test for all supported python3 versions
for py in $(py3versions -s); do
	echo "Loading module with $py:"
	xvfb-run -a $py import-private-module.py
done