New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce 100% code coverage when testing #163
Conversation
@@ -336,3 +336,6 @@ def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None, | |||
return wrap_socket(sock, keyfile=keyfile, certfile=certfile, | |||
ca_certs=ca_certs, cert_reqs=cert_reqs, | |||
ssl_version=ssl_version) | |||
|
|||
def i_am_broken(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this leftover from debugging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope. I want Travis to fail on this. As a meta meta (sic) test case.
Success. Missing coverage makes Travis fail: |
This reverts commit 0f880d5.
Enforce 100% code coverage when testing.
Looks like pypy doesn't like coverage on travis. Should we remove pypy from the build matrix? |
Weird. It works for me locally with pypy 1.9.0 and 2.0.0-beta1. |
Will do, thanks! |
It seems to be a bug in coverage.py. A workaround could be to not enforce coverage on pypy. |
Funsies. Can we even do that? Setup travis to only enforce coverage for everything except pypy? I'm okay with not testing pypy, but it would be a nice to have. |
You can set up the build matrix so that pypy errors are allowed, e.g.,
|
I think appending |
No description provided.