##// END OF EJS Templates
tests: test-module-imports.t works on windows (with backslash path sep)...
Simon Heimberg -
r20395:ab71fb05 default
parent child Browse files
Show More
@@ -1,44 +1,44
1 This code uses the ast module, which was new in 2.6, so we'll skip
1 This code uses the ast module, which was new in 2.6, so we'll skip
2 this test on anything earlier.
2 this test on anything earlier.
3 $ python -c 'import sys ; assert sys.version_info >= (2, 6)' || exit 80
3 $ python -c 'import sys ; assert sys.version_info >= (2, 6)' || exit 80
4
4
5 $ import_checker="$TESTDIR"/../contrib/import-checker.py
5 $ import_checker="$TESTDIR"/../contrib/import-checker.py
6 Run the doctests from the import checker, and make sure
6 Run the doctests from the import checker, and make sure
7 it's working correctly.
7 it's working correctly.
8 $ TERM=dumb
8 $ TERM=dumb
9 $ export TERM
9 $ export TERM
10 $ python -m doctest $import_checker
10 $ python -m doctest $import_checker
11
11
12 $ cd "$TESTDIR"/..
12 $ cd "$TESTDIR"/..
13 $ if hg identify -q > /dev/null 2>&1; then :
13 $ if hg identify -q > /dev/null 2>&1; then :
14 > else
14 > else
15 > echo "skipped: not a Mercurial working dir" >&2
15 > echo "skipped: not a Mercurial working dir" >&2
16 > exit 80
16 > exit 80
17 > fi
17 > fi
18
18
19 There are a handful of cases here that require renaming a module so it
19 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
20 doesn't overlap with a stdlib module name. There are also some cycles
21 here that we should still endeavor to fix, and some cycles will be
21 here that we should still endeavor to fix, and some cycles will be
22 hidden by deduplication algorithm in the cycle detector, so fixing
22 hidden by deduplication algorithm in the cycle detector, so fixing
23 these may expose other cycles.
23 these may expose other cycles.
24
24
25 $ hg locate 'mercurial/**.py' | xargs python "$import_checker"
25 $ hg locate 'mercurial/**.py' | sed 's-\\-/-g' | xargs python "$import_checker"
26 mercurial/dispatch.py mixed imports
26 mercurial/dispatch.py mixed imports
27 stdlib: commands
27 stdlib: commands
28 relative: error, extensions, fancyopts, hg, hook, util
28 relative: error, extensions, fancyopts, hg, hook, util
29 mercurial/fileset.py mixed imports
29 mercurial/fileset.py mixed imports
30 stdlib: parser
30 stdlib: parser
31 relative: error, merge, util
31 relative: error, merge, util
32 mercurial/revset.py mixed imports
32 mercurial/revset.py mixed imports
33 stdlib: parser
33 stdlib: parser
34 relative: discovery, error, hbisect, phases, util
34 relative: discovery, error, hbisect, phases, util
35 mercurial/templater.py mixed imports
35 mercurial/templater.py mixed imports
36 stdlib: parser
36 stdlib: parser
37 relative: config, error, templatefilters, util
37 relative: config, error, templatefilters, util
38 mercurial/ui.py mixed imports
38 mercurial/ui.py mixed imports
39 stdlib: formatter
39 stdlib: formatter
40 relative: config, error, scmutil, util
40 relative: config, error, scmutil, util
41 Import cycle: mercurial.repoview -> mercurial.revset -> mercurial.repoview
41 Import cycle: mercurial.repoview -> mercurial.revset -> mercurial.repoview
42 Import cycle: mercurial.fileset -> mercurial.merge -> mercurial.subrepo -> mercurial.match -> mercurial.fileset
42 Import cycle: mercurial.fileset -> mercurial.merge -> mercurial.subrepo -> mercurial.match -> mercurial.fileset
43 Import cycle: mercurial.cmdutil -> mercurial.context -> mercurial.subrepo -> mercurial.cmdutil -> mercurial.cmdutil
43 Import cycle: mercurial.cmdutil -> mercurial.context -> mercurial.subrepo -> mercurial.cmdutil -> mercurial.cmdutil
44 Import cycle: mercurial.filemerge -> mercurial.match -> mercurial.fileset -> mercurial.merge -> mercurial.filemerge
44 Import cycle: mercurial.filemerge -> mercurial.match -> mercurial.fileset -> mercurial.merge -> mercurial.filemerge
General Comments 0
You need to be logged in to leave comments. Login now