[Bug 5012] New: test-extension.t uses circular import

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Wed Dec 16 20:08:46 UTC 2015


https://bz.mercurial-scm.org/show_bug.cgi?id=5012

            Bug ID: 5012
           Summary: test-extension.t uses circular import
           Product: Mercurial
           Version: 3.6.2
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: arcppzju+hgbug at gmail.com
                CC: mercurial-devel at selenic.com

test-extension.t uses circular import which will fail if demandimport is
disabled:

  --- /home/quark/hg/tests/test-extension.t
  +++ /home/quark/hg/tests/test-extension.t.err
  @@ -207,12 +207,8 @@
     > buf.append('from extroot.bar import s: %s' % s)
     > EOF
     $ hg --config extensions.extroot=$TESTTMP/extroot root
  -  (extroot) from extroot.bar import *: this is extroot.bar
  -  (extroot) import extroot.sub1.baz: this is extroot.sub1.baz
  -  (extroot) import extroot: this is extroot.__init__
  -  (extroot) from extroot.bar import s: this is extroot.bar
  -  (extroot) import extroot.bar in func(): this is extroot.bar
  -  $TESTTMP/a (glob)
  +  *** failed to import extension extroot from $TESTTMP/extroot: No module
named extroot.bar
  +  $TESTTMP/a

Since we have some pypy or python 3 plans, removing circular import is a good
idea.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list