summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-05-09 19:33:02 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-05-09 19:33:02 +0200
commit9a3708cec8cf76165afd0fd46d1267d7cae772ca (patch)
treead23f266701cc7be0475aa128dfddcb050b54629 /tests
parentf026a519aea8f3ea7ca339bfbbb007e1ee0068b0 (diff)
Fixed a test that fails under Python 3.
Diffstat (limited to 'tests')
-rw-r--r--tests/model_forms_regress/tests.py2
1 files changed, 1 insertions, 1 deletions
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"])