<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
OK, I'm able to reproduce the problem with these instructions.&nbsp; I'll
dig into what's going on here.&nbsp; First suspect is some very tricky code
to make decorators work on 2.3, which uses the settrace function to
poke values into frames.<br>
<br>
--Ned.<br>
<br>
Doug Latornell wrote:
<blockquote
 cite="mid:6279c0a40907160945t4f40b57as48ffab659bf7972c@mail.gmail.com"
 type="cite"><font face="times new roman,serif">Thanks for the
suggestions, Ned.&nbsp; I confirmed that the problem exists in a minimal TG
1.0.5 project:<br>
  <br>
  </font>
  <div style="margin-left: 40px;"><font face="courier new,monospace">alec:coverage-test$
tg-admin quickstart spam</font><br>
  <font face="courier new,monospace">...</font><br>
  <font face="courier new,monospace">alec:coverage-test$ cd spam/</font><br>
  <font face="courier new,monospace">alec:spam$ nosetests
--with-coverage --cover-package=spam --cover-erase</font><br>
  <font face="courier new,monospace">..</font><br>
  <font face="courier new,monospace">Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Stmts&nbsp;&nbsp; Exec&nbsp;
Cover&nbsp;&nbsp; Missing</font><br>
  <font face="courier new,monospace">------------------------------------------------</font><br>
  <font face="courier new,monospace">spam&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;
100%</font><br>
  <font face="courier new,monospace">spam.config&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;
100%</font><br>
  <font face="courier new,monospace">spam.controllers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0&nbsp;&nbsp;&nbsp;&nbsp; 0%&nbsp;&nbsp; 1-13</font><br>
  <font face="courier new,monospace">spam.templates&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;
100%</font><br>
  <font face="courier new,monospace">------------------------------------------------</font><br>
  <font face="courier new,monospace">TOTAL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3&nbsp;&nbsp;&nbsp;
30%</font><br>
  <font face="courier new,monospace">----------------------------------------------------------------------</font><br>
  <font face="courier new,monospace">Ran 2 tests in 1.492s<br>
  <br>
OK<br>
alec:spam$ sudo easy_install "coverage==2.85"<br>
...<br>
alec:spam$ nosetests --with-coverage --cover-package=spam --cover-erase<br>
..<br>
Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Stmts&nbsp;&nbsp; Exec&nbsp; Cover&nbsp;&nbsp; Missing<br>
------------------------------------------------<br>
spam&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 100%<br>
spam.config&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 100%<br>
spam.controllers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7&nbsp;&nbsp; 100%<br>
spam.templates&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 100%<br>
------------------------------------------------<br>
TOTAL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7&nbsp;&nbsp; 100%<br>
----------------------------------------------------------------------<br>
Ran 2 tests in 9.206s<br>
  <br>
OK<br>
  </font><br>
  </div>
  <font face="courier new,monospace"><span
 style="font-family: times new roman,serif;">Next, I'll try your -L
option suggestion, and the logging from tip.</span><br
 style="font-family: times new roman,serif;">
  <br style="font-family: times new roman,serif;">
  <span style="font-family: times new roman,serif;">Re: -L is there a
way to pass a switch to coverage through the nose plug-in?&nbsp; AFAIK, the
TG quickstart project template relies on nose for test discovery.&nbsp; The
test module has nothing like a unittest.main() interface.</span><br
 style="font-family: times new roman,serif;">
  <br style="font-family: times new roman,serif;">
  <span style="font-family: times new roman,serif;">Doug</span><br>
  </font><br>
  <br>
  <div class="gmail_quote">On Wed, Jul 15, 2009 at 6:34 PM, Ned
Batchelder <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:ned@nedbatchelder.com">ned@nedbatchelder.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">
Doug, thanks for reporting this.&nbsp; If you don't get a toy TG project
working, here are two things to try:</div>
  </blockquote>
  <div bgcolor="#ffffff" text="#000000">&nbsp;<br>
...</div>
  <div>&nbsp;</div>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000"><br>
--Ned.<br>
    <a moz-do-not-send="true" href="http://nedbatchelder.com"
 target="_blank">http://nedbatchelder.com</a></div>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Ned Batchelder, <a class="moz-txt-link-freetext" href="http://nedbatchelder.com">http://nedbatchelder.com</a>
</pre>
</body>
</html>