##// END OF EJS Templates
test-module-imports: use test-repo requirement
Matt Mackall -
r23894:f388ceae default
parent child Browse files
Show More
@@ -1,8 +1,11 b''
1 #require test-repo
2
1 This code uses the ast module, which was new in 2.6, so we'll skip
3 This code uses the ast module, which was new in 2.6, so we'll skip
2 this test on anything earlier.
4 this test on anything earlier.
3 $ $PYTHON -c 'import sys ; assert sys.version_info >= (2, 6)' || exit 80
5 $ $PYTHON -c 'import sys ; assert sys.version_info >= (2, 6)' || exit 80
4
6
5 $ import_checker="$TESTDIR"/../contrib/import-checker.py
7 $ import_checker="$TESTDIR"/../contrib/import-checker.py
8
6 Run the doctests from the import checker, and make sure
9 Run the doctests from the import checker, and make sure
7 it's working correctly.
10 it's working correctly.
8 $ TERM=dumb
11 $ TERM=dumb
@@ -10,11 +13,6 b" it's working correctly."
10 $ python -m doctest $import_checker
13 $ python -m doctest $import_checker
11
14
12 $ cd "$TESTDIR"/..
15 $ cd "$TESTDIR"/..
13 $ if hg identify -q > /dev/null 2>&1; then :
14 > else
15 > echo "skipped: not a Mercurial working dir" >&2
16 > exit 80
17 > fi
18
16
19 There are a handful of cases here that require renaming a module so it
17 There are a handful of cases here that require renaming a module so it
20 doesn't overlap with a stdlib module name. There are also some cycles
18 doesn't overlap with a stdlib module name. There are also some cycles
General Comments 0
You need to be logged in to leave comments. Login now