From 870a1d1f957d772cab0eb60bc1d1928da2ebb992 Mon Sep 17 00:00:00 2001 From: Kirill Kuzminykh Date: Thu, 2 Mar 2017 22:43:05 +0300 Subject: Reverted useless changes in tests. --- pyramid/tests/test_config/test_views.py | 4 +--- 1 file changed, 1 insertion(+), 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): -- cgit v1.2.3