From e41647a52241c441fe8a5579a89d24e8aad55c0b Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Fri, 10 Feb 2012 01:13:45 +0000 Subject: [PATCH] Fixed a SyntaxError in the middleware tests introduced in r17471. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17488 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/middleware/tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/regressiontests/middleware/tests.py b/tests/regressiontests/middleware/tests.py index 3adb10964a..6a1896a266 100644 --- a/tests/regressiontests/middleware/tests.py +++ b/tests/regressiontests/middleware/tests.py @@ -584,7 +584,6 @@ class GZipMiddlewareTest(TestCase): self.assertEqual(r.get('Content-Encoding'), None) -@override_settings(USE_ETAGS=True) class ETagGZipMiddlewareTest(TestCase): """ Tests if the ETag middleware behaves correctly with GZip middleware. @@ -611,3 +610,6 @@ class ETagGZipMiddlewareTest(TestCase): nogzip_etag = response.get('ETag') self.assertNotEqual(gzip_etag, nogzip_etag) +ETagGZipMiddlewareTest = override_settings( + USE_ETAGS=True, +)(ETagGZipMiddlewareTest)