summaryrefslogtreecommitdiff
path: root/debian/tests/python-upstream.py
diff options
context:
space:
mode:
authorGard Spreemann <gspreemann@gmail.com>2018-08-12 13:00:00 +0200
committerGard Spreemann <gspreemann@gmail.com>2018-08-12 15:46:40 +0200
commitfb77be2327c3399415feb09db417c89dfd3cda19 (patch)
treeb3724e4971fcb3d66e4fac7f29a9a8a16130f954 /debian/tests/python-upstream.py
parent5bddbbf576ca35a2eff6fd58a0eba6f5b4491ae8 (diff)
Test all supported Python versions.
Diffstat (limited to 'debian/tests/python-upstream.py')
-rw-r--r--debian/tests/python-upstream.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/tests/python-upstream.py b/debian/tests/python-upstream.py
new file mode 100644
index 00000000..098701aa
--- /dev/null
+++ b/debian/tests/python-upstream.py
@@ -0,0 +1,17 @@
+import pytest
+import os
+
+tmpdir = os.getenv("AUTOPKGTEST_TMP")
+
+if tmpdir is None:
+ print("Need the environment variable AUTOPKGTEST_TMP.")
+ exit(1)
+
+cwd = os.getcwd()
+test_path = cwd + "/cython/test"
+
+os.chdir(tmpdir)
+
+print("Running tests from %s with cwd %s." %(test_path, os.getcwd()))
+
+exit(pytest.main([test_path]))