<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">What do you now expect the second command to actually do?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Danny<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> testing-in-python-bounces@lists.idyll.org [mailto:testing-in-python-bounces@lists.idyll.org]
<b>On Behalf Of </b>Kamal Ahmed<br>
<b>Sent:</b> 02 June 2012 22:26<br>
<b>To:</b> testing-in-python@lists.idyll.org<br>
<b>Subject:</b> Re: [TIP] (no subject)<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black">Ned,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black">I was actually trying to use your "coverage" library.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black">My Mistake , i separated the two commands and coverage works like a champ.<o:p></o:p></span></p>
</div>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<pre style="background:white;white-space:pre-wrap;word-wrap: break-word"><span style="font-size:8.5pt;color:black">coverage run tests/run.py --with-xunit<o:p></o:p></span></pre>
</div>
</blockquote>
<div>
<pre style="background:white;white-space:pre-wrap;word-wrap: break-word"><span style="font-size:8.5pt;color:black"> coverage xml<o:p></o:p></span></pre>
<pre style="background:white;white-space:pre-wrap;word-wrap: break-word"><span style="font-size:8.5pt;color:black"><o:p> </o:p></span></pre>
<pre style="background:white;white-space:pre-wrap;word-wrap: break-word"><span style="font-size:8.5pt;color:black">correct me if i am wrong, but the error refers to : "coverage", does not have an attribute "xml".<o:p></o:p></span></pre>
<pre style="background:white;white-space:pre-wrap;word-wrap: break-word"><span style="font-size:8.5pt;color:black"><o:p> </o:p></span></pre>
</div>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black">Thanks,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<blockquote style="border:none;border-left:solid #1010FF 1.5pt;padding:0cm 0cm 0cm 4.0pt;margin-left:3.75pt;margin-top:3.75pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black"><o:p> </o:p></span></p>
<div>
<div>
<div>
<div class="MsoNormal" align="center" style="text-align:center;background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">
<hr size="1" width="100%" align="center">
</span></div>
<p class="MsoNormal" style="background:white"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">From:</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"> Ned Batchelder <<a href="mailto:ned@nedbatchelder.com">ned@nedbatchelder.com</a>><br>
<b>To:</b> Kamal Ahmed <<a href="mailto:kamal2222ahmed@yahoo.com">kamal2222ahmed@yahoo.com</a>>
<br>
<b>Cc:</b> "<a href="mailto:py-dev@codespeak.net">py-dev@codespeak.net</a>" <<a href="mailto:py-dev@codespeak.net">py-dev@codespeak.net</a>>; "<a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a>" <<a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a>>
<br>
<b>Sent:</b> Saturday, June 2, 2012 4:50 PM<br>
<b>Subject:</b> Re: [TIP] (no subject)</span><span style="color:black"><o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="color:black"><o:p> </o:p></span></p>
<div id="yiv12729733">
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">On 6/2/2012 4:36 PM, Kamal Ahmed wrote:
<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black">Hi,
<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black">When trying to run nosetests ( 1.1.2 ) with Python 2.7.2, i get the following error:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<pre style="background:white;white-space:pre-wrap;word-wrap:break-word"><span style="font-size:8.5pt;color:black">coverage run tests/run.py --with-xunit coverage.xml<o:p></o:p></span></pre>
</div>
</div>
<p class="MsoNormal" style="background:white"><span style="color:black">Hi, what were you intending to happen with this command line? Why does "coverage.xml" mean here?<br>
<br>
--Ned.<br>
<br>
<o:p></o:p></span></p>
<div>
<div>
<pre style="background:white;white-space:pre-wrap;word-wrap:break-word"><span style="font-size:8.5pt;color:black">E<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black">======================================================================<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black">ERROR: Failure: AttributeError ('module' object has no attribute 'xml')<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black">----------------------------------------------------------------------<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black">Traceback (most recent call last):<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black"> File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/loader.py", line 379, in loadTestsFromName<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black"> module = resolve_name(addr.module)<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black"> File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/util.py", line 331, in resolve_name<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black"> obj = getattr(obj, part)<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black">AttributeError: 'module' object has no attribute 'xml'<o:p></o:p></span></pre>
<pre style="background:white;white-space:pre-wrap;word-wrap:break-word"><span style="font-size:8.5pt;color:black">Any ideas how this can be resolved ?<o:p></o:p></span></pre>
<pre style="background:white;white-space:pre-wrap;word-wrap:break-word"><span style="font-size:8.5pt;color:black">Code snippet:</span><span style="color:black"><o:p></o:p></span></pre>
<pre style="background:white;white-space:pre-wrap;word-wrap:break-word"><span style="font-size:8.5pt;color:black">328 obj = module<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black">329 log.debug("resolve: %s, %s, %s, %s", parts, name, obj, module)<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black">330 for part in parts:<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black">331 obj = getattr(obj, part)<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black">332 return obj<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black">333 <o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:8.5pt;color:black">334 <o:p></o:p></span></pre>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal" style="background:white"><span style="color:black"><br>
<br>
<o:p></o:p></span></p>
<pre style="background:white"><span style="color:black">_______________________________________________<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">testing-in-python mailing list<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black"><a href="mailto:testing-in-python@lists.idyll.org" target="_blank">testing-in-python@lists.idyll.org</a><o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black"><a href="http://lists.idyll.org/listinfo/testing-in-python">http://lists.idyll.org/listinfo/testing-in-python</a><o:p></o:p></span></pre>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="color:black"><o:p> </o:p></span></p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
**************************************************************************************<br>
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@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.<br>
<br>
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<br>
**************************************************************************************<br>
</font>
</body>
</html>