summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-03-25 18:08:54 -0400
committerChris McDonough <chrism@plope.com>2012-03-25 18:08:54 -0400
commitae5ab35c2bc9ceebbd2b52d490e1808c016bf086 (patch)
tree75c0b5304330ac33a67668e28bbee58535413e07
parent3f70b281ca8446c34cd8c259850a68dc2a107ba0 (diff)
downloadpyramid-ae5ab35c2bc9ceebbd2b52d490e1808c016bf086.tar.gz
pyramid-ae5ab35c2bc9ceebbd2b52d490e1808c016bf086.tar.bz2
pyramid-ae5ab35c2bc9ceebbd2b52d490e1808c016bf086.zip
fix tests under py33
-rw-r--r--pyramid/tests/test_config/test_views.py2
-rw-r--r--pyramid/tests/test_scripts/test_proutes.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py
index d44bec691..98fe3d1cd 100644
--- a/pyramid/tests/test_config/test_views.py
+++ b/pyramid/tests/test_config/test_views.py
@@ -2342,7 +2342,7 @@ class TestViewDeriver(unittest.TestCase):
msg = e.args[0]
self.assertTrue(msg.startswith(
'Could not convert return value of the view callable object '
- '<pyramid.tests.test_config.test_views.AView object at'))
+ '<pyramid.tests.test_config.test_views.'))
self.assertTrue(msg.endswith(
'> into a response object. The value returned was None. You '
'may have forgotten to return a value from the view callable.'))
diff --git a/pyramid/tests/test_scripts/test_proutes.py b/pyramid/tests/test_scripts/test_proutes.py
index 8c2660465..fad8c1895 100644
--- a/pyramid/tests/test_scripts/test_proutes.py
+++ b/pyramid/tests/test_scripts/test_proutes.py
@@ -100,7 +100,8 @@ class TestPRoutesCommand(unittest.TestCase):
result = command.run()
self.assertEqual(result, 0)
self.assertEqual(len(L), 3)
- self.assertEqual(L[-1].split()[:4], ['a', '/a', '<function', 'view'])
+ compare_to = L[-1].split()[:3]
+ self.assertEqual(compare_to, ['a', '/a', '<function'])
def test_single_route_one_view_registered_with_factory(self):
from zope.interface import Interface