Skip to content

Instantly share code, notes, and snippets.

@iffy
Created November 1, 2011 22:31
Show Gist options
  • Save iffy/1332155 to your computer and use it in GitHub Desktop.
Save iffy/1332155 to your computer and use it in GitHub Desktop.
coverage bug?
$ coverage run --branch ./thefile.py ; coverage report
Name Stmts Miss Branch BrPart Cover
-------------------------------------------
thefile 8 0 4 1 92%
#!/usr/bin/python
class Foo:
def a(self, var):
if var:
o = lambda *a,**kw: None
return 'a'
f = Foo()
f.a(None)
f.a('something')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment