comparison tests/test-module-imports.t @ 20395:ab71fb058ebf

tests: test-module-imports.t works on windows (with backslash path sep) Transform the backslashes to slashes on windows, because they are eaten up by the shell. (Similar as done in test-check-pyflakes.t.) This test will not produce a traceback on windows anymore. But the test still fails because the detected mixed imports differ.
author Simon Heimberg <simohe@besonet.ch>
date Tue, 28 Jan 2014 00:33:52 +0100
parents d4f804caa0ed
children 906358d0350e
comparison
equal deleted inserted replaced
20394:a817964e7fdf 20395:ab71fb058ebf
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