tests/test-module-imports.t
changeset 27273 5d5b98346fc2
parent 27272 69308357ecd1
equal deleted inserted replaced
27272:69308357ecd1 27273:5d5b98346fc2
   115 
   115 
   116   $ python "$import_checker" testpackage/*.py testpackage/subpackage/*.py
   116   $ python "$import_checker" testpackage/*.py testpackage/subpackage/*.py
   117   testpackage/importalias.py:2: ui module must be "as" aliased to uimod
   117   testpackage/importalias.py:2: ui module must be "as" aliased to uimod
   118   testpackage/importfromalias.py:2: ui from testpackage must be "as" aliased to uimod
   118   testpackage/importfromalias.py:2: ui from testpackage must be "as" aliased to uimod
   119   testpackage/importfromrelative.py:2: import should be relative: testpackage.unsorted
   119   testpackage/importfromrelative.py:2: import should be relative: testpackage.unsorted
   120   testpackage/importfromrelative.py:2: direct symbol import from testpackage.unsorted
   120   testpackage/importfromrelative.py:2: direct symbol import foo from testpackage.unsorted
   121   testpackage/importsymbolfromsub.py:2: direct symbol import from testpackage.subpackage
   121   testpackage/importsymbolfromsub.py:2: direct symbol import nonmodule from testpackage.subpackage
   122   testpackage/latesymbolimport.py:3: symbol import follows non-symbol import: mercurial.node
   122   testpackage/latesymbolimport.py:3: symbol import follows non-symbol import: mercurial.node
   123   testpackage/multiple.py:2: multiple imported names: os, sys
   123   testpackage/multiple.py:2: multiple imported names: os, sys
   124   testpackage/multiplegroups.py:3: multiple "from . import" statements
   124   testpackage/multiplegroups.py:3: multiple "from . import" statements
   125   testpackage/relativestdlib.py:2: relative import of stdlib module
   125   testpackage/relativestdlib.py:2: relative import of stdlib module
   126   testpackage/requirerelative.py:2: import should be relative: testpackage.unsorted
   126   testpackage/requirerelative.py:2: import should be relative: testpackage.unsorted
   127   testpackage/sortedentries.py:2: imports from testpackage not lexically sorted: bar < foo
   127   testpackage/sortedentries.py:2: imports from testpackage not lexically sorted: bar < foo
   128   testpackage/stdafterlocal.py:3: stdlib import follows local import: os
   128   testpackage/stdafterlocal.py:3: stdlib import follows local import: os
   129   testpackage/subpackage/levelpriority.py:3: higher-level import should come first: testpackage
   129   testpackage/subpackage/levelpriority.py:3: higher-level import should come first: testpackage
   130   testpackage/subpackage/localimport.py:7: multiple "from .. import" statements
   130   testpackage/subpackage/localimport.py:7: multiple "from .. import" statements
   131   testpackage/subpackage/localimport.py:8: import should be relative: testpackage.subpackage.levelpriority
   131   testpackage/subpackage/localimport.py:8: import should be relative: testpackage.subpackage.levelpriority
   132   testpackage/symbolimport.py:2: direct symbol import from testpackage.unsorted
   132   testpackage/symbolimport.py:2: direct symbol import foo from testpackage.unsorted
   133   testpackage/unsorted.py:3: imports not lexically sorted: os < sys
   133   testpackage/unsorted.py:3: imports not lexically sorted: os < sys
   134   [1]
   134   [1]
   135 
   135 
   136   $ cd "$TESTDIR"/..
   136   $ cd "$TESTDIR"/..
   137 
   137