Mercurial > hg
diff tests/test-module-imports.t @ 24423:01b39e821d00
crecord: conditionalize the imports that are not available on Windows
'fcntl', 'termios' and 'wcurses' are not available on the default Windows python
installation, and importing them caused widespread carnage in the test suite.
There were 29 different changed test files (on top of unrelated errors), mostly
in the form of an ImportError.
The failures weren't related to actual crecord use, and followed the import
chain:
'localrepo' -> 'subrepo' -> 'cmdutil' -> 'crecord' -> 'fcntl'
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 20 Mar 2015 23:32:00 -0400 |
parents | f388ceae2250 |
children | 642d245ff537 |
line wrap: on
line diff
--- a/tests/test-module-imports.t Fri Mar 20 21:55:11 2015 -0400 +++ b/tests/test-module-imports.t Fri Mar 20 23:32:00 2015 -0400 @@ -21,6 +21,9 @@ these may expose other cycles. $ hg locate 'mercurial/**.py' | sed 's-\\-/-g' | xargs python "$import_checker" + mercurial/crecord.py mixed imports + stdlib: fcntl, termios + relative: curses mercurial/dispatch.py mixed imports stdlib: commands relative: error, extensions, fancyopts, hg, hook, util