diff options
author | Tim Graham <timograham@gmail.com> | 2013-10-19 08:31:38 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2013-10-19 08:31:38 -0400 |
commit | 96d1d4e29275f4f5900f0725975d2ad0a4d05816 (patch) | |
tree | 17b846e3b77f68fbb3b1dc7a2ff413f574c62ce1 /tests/serializers_regress | |
parent | 5f52590368063fc8284e23be492d83ba751f66bf (diff) | |
download | django-96d1d4e29275f4f5900f0725975d2ad0a4d05816.tar.gz |
Removed unused local variables in tests.
Diffstat (limited to 'tests/serializers_regress')
-rw-r--r-- | tests/serializers_regress/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/serializers_regress/tests.py b/tests/serializers_regress/tests.py index 9094e3d2ce..ad0d19433f 100644 --- a/tests/serializers_regress/tests.py +++ b/tests/serializers_regress/tests.py @@ -144,8 +144,8 @@ def m2m_compare(testcase, pk, klass, data): testcase.assertEqual(data, [obj.id for obj in instance.data.order_by('id')]) def im2m_compare(testcase, pk, klass, data): - instance = klass.objects.get(id=pk) - #actually nothing else to check, the instance just should exist + klass.objects.get(id=pk) + # actually nothing else to check, the instance just should exist def im_compare(testcase, pk, klass, data): instance = klass.objects.get(id=pk) @@ -478,7 +478,7 @@ def naturalKeySerializerTest(format, self): instance_count[klass] = klass.objects.count() # use_natural_keys is deprecated and to be removed in Django 1.9 - with warnings.catch_warnings(record=True) as w: + with warnings.catch_warnings(record=True): warnings.simplefilter("always") # Serialize the test database serialized_data = serializers.serialize(format, objects, indent=2, |