summaryrefslogtreecommitdiff
path: root/tests/model_forms_regress/tests.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-19 08:31:38 -0400
committerTim Graham <timograham@gmail.com>2013-10-19 08:31:38 -0400
commit96d1d4e29275f4f5900f0725975d2ad0a4d05816 (patch)
tree17b846e3b77f68fbb3b1dc7a2ff413f574c62ce1 /tests/model_forms_regress/tests.py
parent5f52590368063fc8284e23be492d83ba751f66bf (diff)
Removed unused local variables in tests.
Diffstat (limited to 'tests/model_forms_regress/tests.py')
-rw-r--r--tests/model_forms_regress/tests.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/model_forms_regress/tests.py b/tests/model_forms_regress/tests.py
index c10deef6d0..44907d40fd 100644
--- a/tests/model_forms_regress/tests.py
+++ b/tests/model_forms_regress/tests.py
@@ -369,8 +369,7 @@ class FormFieldCallbackTests(TestCase):
widgets = {'name': widget}
fields = "__all__"
- _ = modelform_factory(Person, form=BaseForm,
- formfield_callback=callback)
+ modelform_factory(Person, form=BaseForm, formfield_callback=callback)
id_field, name_field = Person._meta.fields
self.assertEqual(callback_args,
@@ -567,7 +566,7 @@ class TestTicket19733(TestCase):
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("always", DeprecationWarning)
# This should become an error once deprecation cycle is complete.
- form = modelform_factory(Person)
+ modelform_factory(Person)
self.assertEqual(w[0].category, DeprecationWarning)
def test_modelform_factory_with_all_fields(self):