# HG changeset patch # User Augie Fackler # Date 1384730035 18000 # Node ID 385e209377a68ec0814cad1e206c7bc3631408c3 # Parent 5e301ca90b26c64d2bfaa6f9e50007778c96df0a test-module-imports: skip on Python < 2.6, since ast is new in 2.6 diff -r 5e301ca90b26 -r 385e209377a6 tests/test-module-imports.t --- 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.