Used a picklable argument for a subTest.

This commit is contained in:
Carlton Gibson 2019-03-21 13:54:40 -04:00 committed by Tim Graham
parent 0b8abd7cdf
commit d64808cacd
1 changed files with 1 additions and 1 deletions

View File

@ -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(