mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.7.x] Adjusted refactoring of vendor checks.
Thanks Shai for the thorough review.
Backport of fb90b7c from master
This commit is contained in:
@@ -449,6 +449,7 @@ class SerializerTests(TestCase):
|
||||
self.assertEqual(base_data, proxy_proxy_data.replace('proxy', ''))
|
||||
|
||||
|
||||
@skipUnlessDBFeature('supports_binary_field')
|
||||
def serializerTest(format, self):
|
||||
|
||||
# Create all the objects defined in the test data
|
||||
@@ -481,8 +482,6 @@ def serializerTest(format, self):
|
||||
for klass, count in instance_count.items():
|
||||
self.assertEqual(count, klass.objects.count())
|
||||
|
||||
serializerTest = skipUnlessDBFeature('supports_binary_field')(serializerTest)
|
||||
|
||||
|
||||
def naturalKeySerializerTest(format, self):
|
||||
# Create all the objects defined in the test data
|
||||
|
||||
Reference in New Issue
Block a user