summaryrefslogtreecommitdiff
path: root/tests/admin_docs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_docs')
-rw-r--r--tests/admin_docs/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/admin_docs/tests.py b/tests/admin_docs/tests.py
index f57a9c8117..6f6f8838f3 100644
--- a/tests/admin_docs/tests.py
+++ b/tests/admin_docs/tests.py
@@ -153,8 +153,8 @@ class AdminDocViewTests(TestDataMixin, AdminDocsTestCase):
def test_simplify_regex(self):
tests = (
('^a', '/a'),
- ('^(?P<a>\w+)/b/(?P<c>\w+)/$', '/<a>/b/<c>/'),
- ('^(?P<a>\w+)/b/(?P<c>\w+)$', '/<a>/b/<c>'),
+ (r'^(?P<a>\w+)/b/(?P<c>\w+)/$', '/<a>/b/<c>/'),
+ (r'^(?P<a>\w+)/b/(?P<c>\w+)$', '/<a>/b/<c>'),
)
for pattern, output in tests:
self.assertEqual(simplify_regex(pattern), output)