Hey.<br><br>I'm experiencing some strange behavior. I have a loop, and when I continue to the next element on some condition, it told me that line wasn't covered. Then, I put a pdb.set_trace() in, and I saw that it was, in fact, being run. I put a raise ValueError() instead of that "continue", and it raised. I replaced "continue" with "break", and now coverage.py thinks the line is covered.<br>
<br>What could be going on? Here's the diff:<br><br>=== modified file 'twisted/positioning/nmea.py'<br>--- twisted/positioning/nmea.py 2011-07-02 18:40:44 +0000<br>+++ twisted/positioning/nmea.py 2011-07-02 21:14:31 +0000<br>
@@ -552,7 +552,7 @@<br> prn, azimuth, elevation, snr = values<br> <br> if prn is None or snr is None:<br>- break<br>+ continue<br> <br> satellite = base.Satellite(prn, azimuth, elevation, snr)<br>
self._sentenceData['_partialBeaconInformation'].beacons.add(satellite)<br><br><br>The code lives in lp:~lvh/twisted/positioning.<br><br clear="all">The strange thing is even trial --coverage (which is unrelated to coverage.py...) thinks it's not covered. How can that be?<br>
<br>cheers<div>lvh</div><br>