mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #27804 -- Used subTest() in several tests.
This commit is contained in:
parent
91b2bc3e70
commit
6092ea8fa6
19 changed files with 324 additions and 262 deletions
|
@ -339,4 +339,5 @@ class AdminDocViewFunctionsTests(SimpleTestCase):
|
|||
(r'^a/?$', '/a/'),
|
||||
)
|
||||
for pattern, output in tests:
|
||||
self.assertEqual(simplify_regex(pattern), output)
|
||||
with self.subTest(pattern=pattern):
|
||||
self.assertEqual(simplify_regex(pattern), output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue