fix nocover statements, should be "no cover"
| | |
| | | # 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): |
| | |
| | | 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() |
| | |
| | | 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 |