mirror of https://github.com/django/django.git
Used a picklable argument for a subTest.
This commit is contained in:
parent
0b8abd7cdf
commit
d64808cacd
|
@ -605,7 +605,7 @@ class FormsFormsetTestCase(SimpleTestCase):
|
|||
(OrderingMethodFormSet, '<input class="ordering" type="hidden" name="form-0-ORDER">'),
|
||||
)
|
||||
for formset_class, order_html in tests:
|
||||
with self.subTest(formset_class=formset_class):
|
||||
with self.subTest(formset_class=formset_class.__name__):
|
||||
ArticleFormSet = formset_factory(ArticleForm, formset=formset_class, can_order=True)
|
||||
formset = ArticleFormSet(auto_id=False)
|
||||
self.assertHTMLEqual(
|
||||
|
|
Loading…
Reference in New Issue