Package: python3-pyparsing
Version: 2.0.0+dfsg1-1
Severity: wishlist
Tags: patch

attached basic autopkgtests for pyparsing that verifies it the package
can be imported and some functionality works.
same 706317 just dropped python2 test.
--- python3-pyparsing-2.0.0+dfsg1/debian/tests/control  1970-01-01 01:00:00.000000000 +0100
+++ python3-pyparsing-2.0.0+dfsg1/debian/tests/control  2013-06-01 12:52:42.000000000 +0200
@@ -0,0 +1,2 @@
+Tests: import-py3
+Depends: python3-pyparsing, python3-all
diff -Nru python3-pyparsing-2.0.0+dfsg1/debian/tests/import-py3 python3-pyparsing-2.0.0+dfsg1/debian/tests/import-py3
--- python3-pyparsing-2.0.0+dfsg1/debian/tests/import-py3       1970-01-01 01:00:00.000000000 +0100
+++ python3-pyparsing-2.0.0+dfsg1/debian/tests/import-py3       2013-06-01 12:51:42.000000000 +0200
@@ -0,0 +1,13 @@
+#!/bin/bash
+set -efu
+
+PYS=${PYS:-"$(py3versions -r 2>/dev/null)"}
+
+cd $ADTTMP
+for py in $PYS; do
+    echo "=== $py ==="
+    fn=$($py -c "import pyparsing; print(pyparsing.__file__)")
+    # runs some basic functions, output looks like errors but its intentional
+    $py $fn
+done
+

Reply via email to