[TIP] (no subject)

Staple, Danny (BSKYB) DStaple at nds.com
Thu Jun 7 03:15:06 PDT 2012


I think Ned meant to ask what you intended coverage to do with your parameter "coverage.xml". Were you trying to redirect output to an XML file called coverage.xml? Or did you mean something else - it is not really clear.

What do you now expect the second command to actually do?

Thanks,
Danny

From: testing-in-python-bounces at lists.idyll.org [mailto:testing-in-python-bounces at lists.idyll.org] On Behalf Of Kamal Ahmed
Sent: 02 June 2012 22:26
To: testing-in-python at lists.idyll.org
Subject: Re: [TIP] (no subject)

Ned,
I was actually trying to use your "coverage" library.
My Mistake , i separated the two commands and coverage works like a champ.

coverage run tests/run.py --with-xunit

  coverage xml



correct me if i am wrong, but the error refers to : "coverage", does not have an attribute "xml".


Thanks,


________________________________
From: Ned Batchelder <ned at nedbatchelder.com<mailto:ned at nedbatchelder.com>>
To: Kamal Ahmed <kamal2222ahmed at yahoo.com<mailto:kamal2222ahmed at yahoo.com>>
Cc: "py-dev at codespeak.net<mailto:py-dev at codespeak.net>" <py-dev at codespeak.net<mailto:py-dev at codespeak.net>>; "testing-in-python at lists.idyll.org<mailto:testing-in-python at lists.idyll.org>" <testing-in-python at lists.idyll.org<mailto:testing-in-python at lists.idyll.org>>
Sent: Saturday, June 2, 2012 4:50 PM
Subject: Re: [TIP] (no subject)

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<mailto:testing-in-python at lists.idyll.org>

http://lists.idyll.org/listinfo/testing-in-python


________________________________

**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster at nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20120607/3ced16b5/attachment.html>


More information about the testing-in-python mailing list