Skip to content

Commit aa229c0

Browse files
Switch from list comprehension copy to explict copy
1 parent c1bd360 commit aa229c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_csp_rendering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
from .base import IntegrationTestCase
1515

16-
MIDDLEWARE_CSP_BEFORE = settings.MIDDLEWARE[:]
16+
MIDDLEWARE_CSP_BEFORE = settings.MIDDLEWARE.copy()
1717
MIDDLEWARE_CSP_BEFORE.insert(
1818
MIDDLEWARE_CSP_BEFORE.index("debug_toolbar.middleware.DebugToolbarMiddleware"),
1919
"csp.middleware.CSPMiddleware",

0 commit comments

Comments
 (0)