From 092f09fcc184cf611d5a144172c8b49c25c86577 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 27 Jan 2017 00:36:34 +0100 Subject: [1.11.x] Fixed #27781 -- Made simplify_regex() remove outstanding '?' characters. Regression in f0ef0c49e9284f262fbc63e8a497699ca4a248fe. Backport of c37ec5a6595f963a04fae1b17858225c2b3d08c4 from master --- tests/admin_docs/test_views.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/admin_docs') diff --git a/tests/admin_docs/test_views.py b/tests/admin_docs/test_views.py index b48147fc85..bd483007c7 100644 --- a/tests/admin_docs/test_views.py +++ b/tests/admin_docs/test_views.py @@ -340,6 +340,7 @@ class AdminDocViewFunctionsTests(SimpleTestCase): (r'^(?P(x|y))/b/(?P\w+)$', '//b/'), (r'^(?P(x|y))/b/(?P\w+)ab', '//b/ab'), (r'^(?P(x|y)(\(|\)))/b/(?P\w+)ab', '//b/ab'), + (r'^a/?$', '/a/'), ) for pattern, output in tests: self.assertEqual(simplify_regex(pattern), output) -- cgit v1.3