test-module-imports: use test-repo requirement
authorMatt Mackall <mpm@selenic.com>
Fri, 16 Jan 2015 16:25:30 -0800
changeset 23894 f388ceae2250
parent 23893 f21a0d6d6efd
child 23895 cda18ded2c48
test-module-imports: use test-repo requirement
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