diff options
| author | Tres Seaver <tseaver@palladion.com> | 2014-12-09 02:57:52 -0500 |
|---|---|---|
| committer | Tres Seaver <tseaver@palladion.com> | 2014-12-09 02:57:52 -0500 |
| commit | f325926418155b17660daf54ece46cb3e3b85fe9 (patch) | |
| tree | 67bf75fc7464cd1553d433f023482e5f56088283 /src | |
| parent | b7a69e80cea0a9a7338558b4891ce3c69955e9e3 (diff) | |
| download | zope-interface-f325926418155b17660daf54ece46cb3e3b85fe9.tar.gz | |
100% branch coverage.
We exclude interfaces declared with the 'class' statement, because their
methods typically have only a doctstring in the suite, which confuses
the branch coverage machinery.
Diffstat (limited to 'src')
| -rw-r--r-- | src/zope/interface/advice.py | 4 | ||||
| -rw-r--r-- | src/zope/interface/interface.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/zope/interface/advice.py b/src/zope/interface/advice.py index 788663f..51b85f3 100644 --- a/src/zope/interface/advice.py +++ b/src/zope/interface/advice.py @@ -64,7 +64,7 @@ def getFrameInfo(frame): kind = "class" elif not sameNamespace: kind = "function call" - else: # pragma NO COVER + 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" @@ -111,7 +111,7 @@ def addClassAdvisor(callback, depth=2): # ) previousMetaclass = caller_locals.get('__metaclass__') - if __python3: # pragma NO COVER + if __python3: # pragma: no cover defaultMetaclass = caller_globals.get('__metaclass__', type) else: defaultMetaclass = caller_globals.get('__metaclass__', ClassType) diff --git a/src/zope/interface/interface.py b/src/zope/interface/interface.py index 5526d2e..5a77adb 100644 --- a/src/zope/interface/interface.py +++ b/src/zope/interface/interface.py @@ -450,7 +450,7 @@ class InterfaceClass(Element, InterfaceBase, Specification): if errors: raise Invalid(errors) - def __repr__(self): # pragma NO COVER: + def __repr__(self): # pragma: no cover try: return self._v_repr except AttributeError: |
