[TIP] replacing "break" with "continue" causes line to not be covered w/ coverage.py

Laurens Van Houtven _ at lvh.cc
Sun Jul 3 03:41:06 PDT 2011

Hang on. This appears to be for *unconditional* jumps. My jump isn't
unconditional, it's "if snr is None or prn is None:". How does that get
optimized away? Where's the always-true condition? "prn is None or snr is
None" is certainly not always true, in fact, that's the exception, not the
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20110703/d6eb6e41/attachment.htm>

More information about the testing-in-python mailing list