summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Kuzminykh <cykooz@gmail.com>2017-03-02 22:43:05 +0300
committerKirill Kuzminykh <cykooz@gmail.com>2017-03-02 22:43:05 +0300
commit870a1d1f957d772cab0eb60bc1d1928da2ebb992 (patch)
tree1a3a3af2234d4cfb807794fe02501d8690c0f501
parent71e92df9249274796224ae6d72ca83f0bca942d7 (diff)
downloadpyramid-870a1d1f957d772cab0eb60bc1d1928da2ebb992.tar.gz
pyramid-870a1d1f957d772cab0eb60bc1d1928da2ebb992.tar.bz2
pyramid-870a1d1f957d772cab0eb60bc1d1928da2ebb992.zip
Reverted useless changes in tests.
-rw-r--r--pyramid/tests/test_config/test_views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py
index 79631c6b8..211632730 100644
--- a/pyramid/tests/test_config/test_views.py
+++ b/pyramid/tests/test_config/test_views.py
@@ -13,8 +13,6 @@ from pyramid.compat import (
from pyramid.exceptions import ConfigurationError
from pyramid.exceptions import ConfigurationExecutionError
from pyramid.exceptions import ConfigurationConflictError
-from pyramid.registry import undefer
-
class TestViewsConfigurationMixin(unittest.TestCase):
def _makeOne(self, *arg, **kw):
@@ -150,7 +148,7 @@ class TestViewsConfigurationMixin(unittest.TestCase):
self.assertEqual(wrapper.__module__, view.__module__)
self.assertEqual(wrapper.__name__, view.__name__)
self.assertEqual(wrapper.__doc__, view.__doc__)
- self.assertEqual(undefer(wrapper.__discriminator__(None, None))[0],
+ self.assertEqual(wrapper.__discriminator__(None, None).resolve()[0],
'view')
def test_add_view_view_callable_dottedname(self):