Mercurial > hg
changeset 23894:f388ceae2250
test-module-imports: use test-repo requirement
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 16 Jan 2015 16:25:30 -0800 |
parents | f21a0d6d6efd |
children | cda18ded2c48 |
files | tests/test-module-imports.t |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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