From 9a3708cec8cf76165afd0fd46d1267d7cae772ca Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Thu, 9 May 2013 19:33:02 +0200 Subject: [PATCH] Fixed a test that fails under Python 3. --- tests/model_forms_regress/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/model_forms_regress/tests.py b/tests/model_forms_regress/tests.py index 3f15c35938..0e033e033f 100644 --- a/tests/model_forms_regress/tests.py +++ b/tests/model_forms_regress/tests.py @@ -536,4 +536,4 @@ class TestTicket19733(TestCase): def test_modelform_factory_with_all_fields(self): form = modelform_factory(Person, fields="__all__") - self.assertEqual(form.base_fields.keys(), ["name"]) + self.assertEqual(list(form.base_fields), ["name"])