# HG changeset patch # User Matt Mackall # Date 2015-01-17 00:25:30 # Node ID f388ceae225093e934f2709bdcb73c92ea47be69 # Parent f21a0d6d6efddfcb286d094113b2d82e8fe05d92 test-module-imports: use test-repo requirement diff --git a/tests/test-module-imports.t b/tests/test-module-imports.t --- a/tests/test-module-imports.t +++ b/tests/test-module-imports.t @@ -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 @@ it's working correctly. $ 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