Skip to content

Commit

Permalink
Explicitly mark uncovered paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Apr 28, 2013
1 parent 302ada3 commit b82d7ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions venusian/advice.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ def getFrameInfo(frame):
frameinfo = inspect.getframeinfo(frame)
try:
sourceline = frameinfo[3][0].strip()
except: # dont understand circumstance here, 3rdparty code without comment
except: #pragma NO COVER
# dont understand circumstance here, 3rdparty code without comment
sourceline = frameinfo[3]

codeinfo = frameinfo[0], frameinfo[1], frameinfo[2], sourceline

if not namespaceIsModule:
if not namespaceIsModule: #pragma no COVER
# some kind of funky exec
kind = "exec" # don't know how to repeat this scenario
elif sameNamespace and not hasModule:
Expand All @@ -67,7 +68,7 @@ def getFrameInfo(frame):
kind = "class"
elif not sameNamespace:
kind = "function call"
else:
else: #pragma NO COVER
# How can you have f_locals is f_globals, and have '__module__' set?
# This is probably module-level code, but with a '__module__' variable.
kind = "unknown"
Expand Down

0 comments on commit b82d7ff

Please sign in to comment.