mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Marked tests of BinaryFields as expected failures on MySQL and Python 3.
Current ports of MySQLdb are very buggy in this area.
This commit is contained in:
parent
86b4ac665a
commit
7476d96f83
3 changed files with 14 additions and 2 deletions
|
@ -26,7 +26,7 @@ from django.test import TestCase
|
|||
from django.utils import six
|
||||
from django.utils.encoding import force_text
|
||||
from django.utils.functional import curry
|
||||
from django.utils.unittest import skipUnless
|
||||
from django.utils.unittest import expectedFailure, skipUnless
|
||||
|
||||
from .models import (BinaryData, BooleanData, CharData, DateData, DateTimeData, EmailData,
|
||||
FileData, FilePathData, DecimalData, FloatData, IntegerData, IPAddressData,
|
||||
|
@ -459,6 +459,11 @@ def serializerTest(format, self):
|
|||
for klass, count in instance_count.items():
|
||||
self.assertEqual(count, klass.objects.count())
|
||||
|
||||
if connection.vendor == 'mysql' and six.PY3:
|
||||
# Existing MySQL DB-API drivers fail on binary data.
|
||||
serializerTest = expectedFailure(serializerTest)
|
||||
|
||||
|
||||
def naturalKeySerializerTest(format, self):
|
||||
# Create all the objects defined in the test data
|
||||
objects = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue