nose-devs/nose — Issue #313: Importing mercurial.hg in module causes nose to raise AttributeError 
Author: jpellerin
Created: 2011-12-14 16:07:21+00:00
State: open

What steps will reproduce the problem?

run ``nose.main()`` or nosetests in a directory with a python file that
imports mercurial.hg

What is the expected output? What do you see instead?

No error is expected, but nose raises:

ERROR: Failure: AttributeError ('module' object has no attribute 'rfind')

What version of the product are you using? On what operating system?

nose 0.10.4
mercurial 1.1
OS X 10.5 (Leopard)
Python 2.5.1

Please provide any additional information below.

Note the module import: mercurial.hg. This error is NOT observed when
importing mercurial (without module hg). Also, this error is NOT observed
when ``import mercurial.hg`` is called within the same module as
``nose.main()``. In fact, calling ``import mercurial.hg`` from the same
module as ``nose.main()`` suppresses the error, even if ``import
mercurial.hg`` is called from another module.

Google Code Info:
Issue #: 224
Author: tsy...@gmail.com
Created On: 2008-12-17T19:53:15.000Z
Closed On: