<br><br><div class="gmail_quote">On Thu, May 17, 2012 at 9:48 AM, Fabrice Silva <span dir="ltr"><<a href="mailto:silva@lma.cnrs-mrs.fr" target="_blank">silva@lma.cnrs-mrs.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le mercredi 16 mai 2012 à 22:58 +0200, Ralf Gommers a écrit :<br>
<div class="im"><br>
> Both coverage=True and coverage=False work with your attached package.<br>
> But it seems you attached an old version, because test_a.py doesn't<br>
> include the actual test. "obj = a.b.mycls()" in test_a.py executes<br>
> fine, so it may be a problem with the way you wrote the test case.<br>
<br>
</div>Sorry, I forgot to update the archive...<br>
Here new one that lead (on my machine) to failure with coverage</blockquote><div><br>Still not the right code.<br><br>Here's the code in b.py:<br><br>class mycls(object):<br>    def __init__(self):<br>        print "Id(type(self)) = ",id(type(self))<br>
print "Id(mycls in b) = ", id(mycls)<br><br><br>Test fails on "assert a.b.is_mycls(obj)".  There's no such thing in b. This has nothing to do with coverage.<br><br>Ralf<br> <br></div></div>