diff options
author | Tim Graham <timograham@gmail.com> | 2016-09-16 12:15:00 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-09-17 15:44:06 -0400 |
commit | 8119b679eb85cdc0ae3d321e54d06dd0200a1e82 (patch) | |
tree | b4f4e40a371569a260a39ca310e8e984d8582d74 /tests/admin_docs | |
parent | 17677d510f65012531a5af57fd056fb15cfe1067 (diff) | |
download | django-8119b679eb85cdc0ae3d321e54d06dd0200a1e82.tar.gz |
Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.
http://bugs.python.org/issue27364
Diffstat (limited to 'tests/admin_docs')
-rw-r--r-- | tests/admin_docs/tests.py | 4 |
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) |