diff options
| author | Jason Madden <jamadden@gmail.com> | 2017-06-14 09:45:49 -0500 |
|---|---|---|
| committer | Jason Madden <jamadden@gmail.com> | 2017-06-14 09:45:49 -0500 |
| commit | 3a1a264e6dc116c620153d2b691d5668dfaee9a4 (patch) | |
| tree | 2e6d6c39cc32b8aacf5e47252723a15f2e55e37b /src/zope/interface/tests/test_exceptions.py | |
| parent | bf0565350d8973f8ba260d0824678248d053de11 (diff) | |
| download | zope-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/tests/test_exceptions.py')
| -rw-r--r-- | src/zope/interface/tests/test_exceptions.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/zope/interface/tests/test_exceptions.py b/src/zope/interface/tests/test_exceptions.py index 94009f6..ae73f9c 100644 --- a/src/zope/interface/tests/test_exceptions.py +++ b/src/zope/interface/tests/test_exceptions.py @@ -27,9 +27,8 @@ class DoesNotImplementTests(unittest.TestCase): from zope.interface.exceptions import DoesNotImplement return DoesNotImplement - def _makeOne(self, iface=None): - if iface is None: - iface = _makeIface() + def _makeOne(self): + iface = _makeIface() return self._getTargetClass()(iface) def test___str__(self): @@ -45,9 +44,8 @@ class BrokenImplementationTests(unittest.TestCase): from zope.interface.exceptions import BrokenImplementation return BrokenImplementation - def _makeOne(self, iface=None, name='missing'): - if iface is None: - iface = _makeIface() + def _makeOne(self, name='missing'): + iface = _makeIface() return self._getTargetClass()(iface, name) def test___str__(self): @@ -72,4 +70,3 @@ class BrokenMethodImplementationTests(unittest.TestCase): self.assertEqual(str(dni), 'The implementation of aMethod violates its contract\n' ' because I said so.\n ') - |
