mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Adjusted refactoring of vendor checks.
Thanks Shai for the thorough review.
This commit is contained in:
parent
a5de0df58b
commit
fb90b7cda2
6 changed files with 11 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue