[TIP] (no subject)

Kamal Ahmed kamal2222ahmed at yahoo.com
Sat Jun 2 13:36:00 PDT 2012

When trying to run nosetests ( 1.1.2 ) with Python 2.7.2, i get the following error:

coverage run tests/run.py --with-xunit coverage.xml
ERROR: Failure: AttributeError ('module' object has no attribute 'xml')
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/loader.py", line 379, in loadTestsFromName module = resolve_name(addr.module) File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/util.py", line 331, in resolve_name obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'xml'

Any ideas how this can be resolved ?

Code snippet:

328     obj = module
329     log.debug("resolve: %s, %s, %s, %s", parts, name, obj, module)
330     for part in parts:
331         obj = getattr(obj, part)
332     return obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20120602/e92de5d6/attachment.html>

More information about the testing-in-python mailing list