tests/test-module-imports.t
changeset 20059 385e209377a6
parent 20039 05626e87489c
child 20173 40f79b9a2cc8
--- a/tests/test-module-imports.t	Sun Nov 17 17:49:48 2013 -0500
+++ b/tests/test-module-imports.t	Sun Nov 17 18:13:55 2013 -0500
@@ -1,3 +1,7 @@
+This code uses the ast module, which was new in 2.6, so we'll skip
+this test on anything earlier.
+  $ python -c 'import sys ; assert sys.version_info >= (2, 6)' || exit 80
+
   $ import_checker="$TESTDIR"/../contrib/import-checker.py
 Run the doctests from the import checker, and make sure
 it's working correctly.