Michael Merickel
2016-11-28 af01a5ac5e31a778be8d634a560983fe818746bf
fix nocover statements, should be "no cover"
3 files modified
8 ■■■■ changed files
pyramid/tests/test_config/test_views.py 4 ●●●● patch | view | raw | blame | history
pyramid/tests/test_httpexceptions.py 2 ●●● patch | view | raw | blame | history
pyramid/util.py 2 ●●● patch | view | raw | blame | history
pyramid/tests/test_config/test_views.py
@@ -2309,9 +2309,9 @@
    # Since Python 3 has to be all cool and fancy and different...
    def _assertBody(self, response, value):
        from pyramid.compat import text_type
        if isinstance(value, text_type): # pragma: nocover
        if isinstance(value, text_type):  # pragma: no cover
            self.assertEqual(response.text, value)
        else: # pragma: nocover
        else:  # pragma: no cover
            self.assertEqual(response.body, value)
    def test_add_notfound_view_with_renderer(self):
pyramid/tests/test_httpexceptions.py
@@ -348,7 +348,7 @@
        exc = cls(body_template='${REQUEST_METHOD}')
        environ = _makeEnviron()
        class Choke(object):
            def __str__(self): # pragma nocover
            def __str__(self):  # pragma no cover
                raise ValueError
        environ['gardentheory.user'] = Choke()
        start_response = DummyStartResponse()
pyramid/util.py
@@ -3,7 +3,7 @@
try:
    # py2.7.7+ and py3.3+ have native comparison support
    from hmac import compare_digest
except ImportError: # pragma: nocover
except ImportError:  # pragma: no cover
    compare_digest = None
import inspect
import traceback