From d64808cacdd93db71c0be18d8d110f9dbf60d4f6 Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Thu, 21 Mar 2019 13:54:40 -0400 Subject: [PATCH] Used a picklable argument for a subTest. --- tests/forms_tests/tests/test_formsets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(