From 8119b679eb85cdc0ae3d321e54d06dd0200a1e82 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 16 Sep 2016 12:15:00 -0400 Subject: Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. http://bugs.python.org/issue27364 --- tests/admin_docs/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/admin_docs') 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\w+)/b/(?P\w+)/$', '//b//'), - ('^(?P\w+)/b/(?P\w+)$', '//b/'), + (r'^(?P\w+)/b/(?P\w+)/$', '//b//'), + (r'^(?P\w+)/b/(?P\w+)$', '//b/'), ) for pattern, output in tests: self.assertEqual(simplify_regex(pattern), output) -- cgit v1.3