diff options
| author | Michael Merickel <michael@merickel.org> | 2016-11-27 17:09:32 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2016-11-27 17:09:48 -0600 |
| commit | af01a5ac5e31a778be8d634a560983fe818746bf (patch) | |
| tree | 255ce5282fbd8e719555e8fbe3e692e12dca0ca1 | |
| parent | 7fae2c09c3e7c0710e69dbe3100508ed5266e84a (diff) | |
| download | pyramid-af01a5ac5e31a778be8d634a560983fe818746bf.tar.gz pyramid-af01a5ac5e31a778be8d634a560983fe818746bf.tar.bz2 pyramid-af01a5ac5e31a778be8d634a560983fe818746bf.zip | |
fix nocover statements, should be "no cover"
| -rw-r--r-- | pyramid/tests/test_config/test_views.py | 4 | ||||
| -rw-r--r-- | pyramid/tests/test_httpexceptions.py | 2 | ||||
| -rw-r--r-- | pyramid/util.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py index f020485de..211632730 100644 --- a/pyramid/tests/test_config/test_views.py +++ b/pyramid/tests/test_config/test_views.py @@ -2309,9 +2309,9 @@ class TestViewsConfigurationMixin(unittest.TestCase): # 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): diff --git a/pyramid/tests/test_httpexceptions.py b/pyramid/tests/test_httpexceptions.py index 6c6e16d55..224fa4cf0 100644 --- a/pyramid/tests/test_httpexceptions.py +++ b/pyramid/tests/test_httpexceptions.py @@ -348,7 +348,7 @@ class TestHTTPException(unittest.TestCase): 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() diff --git a/pyramid/util.py b/pyramid/util.py index 4936dcb24..d5b3c6d72 100644 --- a/pyramid/util.py +++ b/pyramid/util.py @@ -3,7 +3,7 @@ import functools 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 |
