Chris McDonough
2010-11-18 85ee02b24caf0bf6b491b5ecf7ad84c29ca8c75c
- Make test suite pass on Jython (requires PasteScript trunk, presumably to
be 1.7.4).
2 files modified
12 ■■■■ changed files
CHANGES.txt 3 ●●●●● patch | view | raw | blame | history
pyramid/tests/test_configuration.py 9 ●●●● patch | view | raw | blame | history
CHANGES.txt
@@ -12,6 +12,9 @@
- Add a ``pyramid.request.Request.route_path`` API.  This is a convenience
  method of the request which calls ``pyramid.url.route_url``.
- Make test suite pass on Jython (requires PasteScript trunk, presumably to
  be 1.7.4).
Bug Fixes
---------
pyramid/tests/test_configuration.py
@@ -2940,6 +2940,7 @@
                         pyramid.tests)
    def test_scan_integration(self):
        import os
        from zope.interface import alsoProvides
        from pyramid.interfaces import IRequest
        from pyramid.view import render_view_to_response
@@ -3011,8 +3012,12 @@
        result = render_view_to_response(ctx, req, 'another_stacked_class2')
        self.assertEqual(result, 'another_stacked_class')
        self.assertRaises(TypeError,
                          render_view_to_response, ctx, req, 'basemethod')
        if not os.name.startswith('java'):
            # on Jython, a class without an __init__ apparently accepts
            # any number of arguments without raising a TypeError.
            self.assertRaises(TypeError,
                              render_view_to_response, ctx, req, 'basemethod')
        result = render_view_to_response(ctx, req, 'method1')
        self.assertEqual(result, 'method1')