mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.
http://bugs.python.org/issue27364
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user