changeset 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 a817964e7fdf
children a8e6ab7eb361
files tests/test-module-imports.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-module-imports.t	Fri Feb 07 17:54:10 2014 -0600
+++ b/tests/test-module-imports.t	Tue Jan 28 00:33:52 2014 +0100
@@ -22,7 +22,7 @@
 hidden by deduplication algorithm in the cycle detector, so fixing
 these may expose other cycles.
 
-  $ hg locate 'mercurial/**.py' | xargs python "$import_checker"
+  $ hg locate 'mercurial/**.py' | sed 's-\\-/-g' | xargs python "$import_checker"
   mercurial/dispatch.py mixed imports
      stdlib:    commands
      relative:  error, extensions, fancyopts, hg, hook, util