Created
November 1, 2011 22:31
-
-
Save iffy/1332155 to your computer and use it in GitHub Desktop.
coverage bug?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ coverage run --branch ./thefile.py ; coverage report | |
Name Stmts Miss Branch BrPart Cover | |
------------------------------------------- | |
thefile 8 0 4 1 92% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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