summaryrefslogtreecommitdiff
path: root/tests/check_framework/urls/no_warnings.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/check_framework/urls/no_warnings.py')
-rw-r--r--tests/check_framework/urls/no_warnings.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/check_framework/urls/no_warnings.py b/tests/check_framework/urls/no_warnings.py
index e1846fb884..d100f04590 100644
--- a/tests/check_framework/urls/no_warnings.py
+++ b/tests/check_framework/urls/no_warnings.py
@@ -1,9 +1,14 @@
from django.urls import include, path, re_path
urlpatterns = [
- path('foo/', lambda x: x, name='foo'),
+ path("foo/", lambda x: x, name="foo"),
# This dollar is ok as it is escaped
- re_path(r'^\$', include([
- path('bar/', lambda x: x, name='bar'),
- ])),
+ re_path(
+ r"^\$",
+ include(
+ [
+ path("bar/", lambda x: x, name="bar"),
+ ]
+ ),
+ ),
]