summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2013-09-06 18:13:49 -0600
committerBert JW Regeer <bertjw@regeer.org>2013-09-06 18:13:49 -0600
commit9df28a2a52f41a76cb37acc0d02aff0bd55eeac7 (patch)
tree87b20f9872d6503c4b8910a2d04c95548a8a2695
parent8c3a3bfb5b8679b16f36c9fd0f5ec8cb3b89d37f (diff)
downloadpyramid-9df28a2a52f41a76cb37acc0d02aff0bd55eeac7.tar.gz
pyramid-9df28a2a52f41a76cb37acc0d02aff0bd55eeac7.tar.bz2
pyramid-9df28a2a52f41a76cb37acc0d02aff0bd55eeac7.zip
Add pragma: nocover due to Py3x/Py2x differences
-rw-r--r--pyramid/tests/test_config/test_views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py
index 88f740323..618ac2bf4 100644
--- a/pyramid/tests/test_config/test_views.py
+++ b/pyramid/tests/test_config/test_views.py
@@ -1845,9 +1845,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):
+ if isinstance(value, text_type): # pragma: nocover
self.assertEqual(response.text, value)
- else:
+ else: # pragma: nocover
self.assertEqual(response.body, value)
def test_add_notfound_view_with_renderer(self):