diff --git a/tests/regressiontests/middleware/tests.py b/tests/regressiontests/middleware/tests.py index 3adb10964af..6a1896a266b 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)