From 9f7de68bc84af8343949b9dd98e53dc9ca8b77a1 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 26 Sep 2011 05:20:48 -0400 Subject: get rid of resourcewarnings --- pyramid/renderers.py | 1 - pyramid/tests/test_config/test_views.py | 1 + pyramid/tests/test_static.py | 14 ++++++++++---- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/pyramid/renderers.py b/pyramid/renderers.py index 88cb869a5..073ce444d 100644 --- a/pyramid/renderers.py +++ b/pyramid/renderers.py @@ -17,7 +17,6 @@ from pyramid.asset import asset_spec_from_abspath from pyramid.compat import json from pyramid.compat import string_types from pyramid.compat import text_type -from pyramid.compat import native_ from pyramid.decorator import reify from pyramid.events import BeforeRender from pyramid.path import caller_package diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py index 1f7ea05c2..0813eecdb 100644 --- a/pyramid/tests/test_config/test_views.py +++ b/pyramid/tests/test_config/test_views.py @@ -1429,6 +1429,7 @@ class TestViewsConfigurationMixin(unittest.TestCase): request.subpath = ('minimal.pt', ) result = wrapped(None, request) self.assertEqual(result.status, '200 OK') + self.assertTrue(result.body.startswith(b'