[TIP] (no subject)

Ned Batchelder ned at nedbatchelder.com
Sat Jun 2 13:50:44 PDT 2012


On 6/2/2012 4:36 PM, Kamal Ahmed wrote:
> Hi,
> 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
Hi, what were you intending to happen with this command line?  Why does 
"coverage.xml" mean here?

--Ned.
> E
> ======================================================================
> 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
> 333
> 334
>
>
>
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20120602/252e7940/attachment.htm>


More information about the testing-in-python mailing list