]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Add @wsgi_safe decorator to a couple of web tests.
authorBen Darnell <ben@bendarnell.com>
Sun, 8 Mar 2015 14:02:19 +0000 (10:02 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 8 Mar 2015 14:02:19 +0000 (10:02 -0400)
tornado/test/web_test.py

index b8e1c75cdbe328eb3d51ee6f2b3555071ba3b398..f9fa56bbb8f34598abddcbd817a516ab8d54ad9b 100644 (file)
@@ -2393,6 +2393,7 @@ class FinishExceptionTest(SimpleHandlerTestCase):
         self.assertEqual(b'authentication required', response.body)
 
 
+@wsgi_safe
 class DecoratorTest(WebTestCase):
     def get_handlers(self):
         class RemoveSlashHandler(RequestHandler):
@@ -2428,6 +2429,7 @@ class DecoratorTest(WebTestCase):
         self.assertEqual(response.headers['Location'], "/addslash/?foo=bar")
 
 
+@wsgi_safe
 class CacheTest(WebTestCase):
     def get_handlers(self):
         class EtagHandler(RequestHandler):