# HG changeset patch # User Matt Mackall # Date 1421454330 28800 # Node ID f388ceae225093e934f2709bdcb73c92ea47be69 # Parent f21a0d6d6efddfcb286d094113b2d82e8fe05d92 test-module-imports: use test-repo requirement diff -r f21a0d6d6efd -r f388ceae2250 tests/test-module-imports.t --- a/tests/test-module-imports.t Fri Jan 09 19:10:09 2015 +0100 +++ b/tests/test-module-imports.t Fri Jan 16 16:25:30 2015 -0800 @@ -1,8 +1,11 @@ +#require test-repo + 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. $ TERM=dumb @@ -10,11 +13,6 @@ $ python -m doctest $import_checker $ cd "$TESTDIR"/.. - $ if hg identify -q > /dev/null 2>&1; then : - > else - > echo "skipped: not a Mercurial working dir" >&2 - > exit 80 - > fi There are a handful of cases here that require renaming a module so it doesn't overlap with a stdlib module name. There are also some cycles