summaryrefslogtreecommitdiff
path: root/src/zope/interface/verify.py
diff options
context:
space:
mode:
authorJason Madden <jamadden@gmail.com>2017-06-14 09:45:49 -0500
committerJason Madden <jamadden@gmail.com>2017-06-14 09:45:49 -0500
commit3a1a264e6dc116c620153d2b691d5668dfaee9a4 (patch)
tree2e6d6c39cc32b8aacf5e47252723a15f2e55e37b /src/zope/interface/verify.py
parentbf0565350d8973f8ba260d0824678248d053de11 (diff)
downloadzope-interface-combined-coverage.tar.gz
Enable combined coverage reports under tox and branch coveragecombined-coverage
Fixes #91 Remove many (or most) now-redundant 'pragma: no cover'. A few minor test changes to get full branch coverage.
Diffstat (limited to 'src/zope/interface/verify.py')
-rw-r--r--src/zope/interface/verify.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zope/interface/verify.py b/src/zope/interface/verify.py
index 5a0e684..098b484 100644
--- a/src/zope/interface/verify.py
+++ b/src/zope/interface/verify.py
@@ -66,10 +66,10 @@ def _verify(iface, candidate, tentative=0, vtype=None):
continue
if isinstance(attr, FunctionType):
- if sys.version[0] == '3' and isinstance(candidate, type):
+ if sys.version_info[0] >= 3 and isinstance(candidate, type):
# This is an "unbound method" in Python 3.
meth = fromFunction(attr, iface, name=name,
- imlevel=1) # pragma: no cover
+ imlevel=1)
else:
# Nope, just a normal function
meth = fromFunction(attr, iface, name=name)
@@ -85,7 +85,7 @@ def _verify(iface, candidate, tentative=0, vtype=None):
raise BrokenMethodImplementation(name, "Not a method")
# sigh, it's callable, but we don't know how to introspect it, so
# we have to give it a pass.
- continue # pragma: no cover
+ continue
# Make sure that the required and implemented method signatures are
# the same.