From: Ben Darnell Date: Sun, 8 Mar 2015 14:02:19 +0000 (-0400) Subject: Add @wsgi_safe decorator to a couple of web tests. X-Git-Tag: v4.2.0b1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6faa27fb14f2ceb0c695ca2a8ac809d399613554;p=thirdparty%2Ftornado.git Add @wsgi_safe decorator to a couple of web tests. --- diff --git a/tornado/test/web_test.py b/tornado/test/web_test.py index b8e1c75cd..f9fa56bbb 100644 --- a/tornado/test/web_test.py +++ b/tornado/test/web_test.py @@ -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):