<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt"><div><span>Ned,</span></div><div><span>I was actually trying to use your "coverage" library.</span></div><div><span>My Mistake , i separated the two commands and coverage works like a champ.</span></div><div><span><blockquote type="cite" style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; "><div class="yui_3_2_0_28_133864197581771" style="font-size: 10pt; "><pre style="white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; font-size: 11px; ">coverage run tests/run.py --with-xunit</pre></div></blockquote><pre style="white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; font-size: 11px; "><div class="yui_3_2_0_28_133864197581771" style="font-size: 10pt; "><pre style="white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px;
font-size: 11px; "> coverage xml</pre><pre style="white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; font-size: 11px; "><br></pre><pre style="white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; font-size: 11px; ">correct me if i am wrong, but the error refers to : "coverage", does not have an attribute "xml".</pre><pre style="white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; font-size: 11px; "><br></pre></div></pre></span></div><div><span>Thanks,</span></div><div><span><br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-size: 10pt; font-family: verdana, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span
style="font-weight:bold;">From:</span></b> Ned Batchelder <ned@nedbatchelder.com><br> <b><span style="font-weight: bold;">To:</span></b> Kamal Ahmed <kamal2222ahmed@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "py-dev@codespeak.net" <py-dev@codespeak.net>; "testing-in-python@lists.idyll.org" <testing-in-python@lists.idyll.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, June 2, 2012 4:50 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [TIP] (no subject)<br> </font> </div> <br>
<div id="yiv12729733">
<div>
On 6/2/2012 4:36 PM, Kamal Ahmed wrote:
<blockquote type="cite">
<div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: verdana, helvetica, sans-serif; ">Hi,
<div>When trying to run nosetests ( 1.1.2 ) with Python 2.7.2, i
get the following error:</div>
<div><br>
</div>
<div>
<pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;font-size:11px;">coverage run tests/run.py --with-xunit coverage.xml</pre>
</div>
</div>
</blockquote>
Hi, what were you intending to happen with this command line? Why
does "coverage.xml" mean here?<br>
<br>
--Ned.<br>
<blockquote type="cite">
<div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: verdana, helvetica, sans-serif; ">
<div>
<pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;font-size:11px;">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'</pre>
<pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;font-size:11px;"></pre>
<pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;font-size:11px;">Any ideas how this can be resolved ?</pre>
<pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;font-size:11px;"></pre>
<pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;font-size:11px;"></pre>
<pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px;"><span style="font-size:11px;white-space:pre-wrap;">Code snippet:</span></pre>
<pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;font-size:11px;"></pre>
<pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px;"><span style="
font-size:11px;white-space:pre-wrap;">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 </span><span style="font-size:11px;white-space:pre-wrap;">
</span></pre>
<div><br>
</div>
</div>
</div>
<br>
<fieldset class="yiv12729733mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
testing-in-python mailing list
<a rel="nofollow" class="yiv12729733moz-txt-link-abbreviated" ymailto="mailto:testing-in-python@lists.idyll.org" target="_blank" href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a>
http://lists.idyll.org/listinfo/testing-in-python
</pre>
</blockquote>
</div>
</div><br><br> </div> </div> </blockquote></div> </div></body></html>