1
0
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:
Aymeric Augustin
2014-05-10 14:40:42 +02:00
parent 0c198035e9
commit c54fb3d922
6 changed files with 11 additions and 10 deletions

View File

@@ -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