diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2017-01-27 00:36:34 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-26 18:36:54 -0500 |
| commit | 092f09fcc184cf611d5a144172c8b49c25c86577 (patch) | |
| tree | 20eea379a6fd7c9f2e164e2546146ea0c865e124 /tests/admin_docs | |
| parent | 7dda48bf18454b34e8e0a305dbfda08ecfe8db25 (diff) | |
[1.11.x] Fixed #27781 -- Made simplify_regex() remove outstanding '?' characters.
Regression in f0ef0c49e9284f262fbc63e8a497699ca4a248fe.
Backport of c37ec5a6595f963a04fae1b17858225c2b3d08c4 from master
Diffstat (limited to 'tests/admin_docs')
| -rw-r--r-- | tests/admin_docs/test_views.py | 1 |
1 files changed, 1 insertions, 0 deletions
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<a>(x|y))/b/(?P<c>\w+)$', '/<a>/b/<c>'), (r'^(?P<a>(x|y))/b/(?P<c>\w+)ab', '/<a>/b/<c>ab'), (r'^(?P<a>(x|y)(\(|\)))/b/(?P<c>\w+)ab', '/<a>/b/<c>ab'), + (r'^a/?$', '/a/'), ) for pattern, output in tests: self.assertEqual(simplify_regex(pattern), output) |
