diff --git a/tests/forms_tests/tests/test_formsets.py b/tests/forms_tests/tests/test_formsets.py index 7c6a244c90..0a4be19623 100644 --- a/tests/forms_tests/tests/test_formsets.py +++ b/tests/forms_tests/tests/test_formsets.py @@ -605,7 +605,7 @@ class FormsFormsetTestCase(SimpleTestCase): (OrderingMethodFormSet, ''), ) 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(