Revert "Fixes a test broken by mysqlclient 1.3.8."
This reverts commit eb64d1ce2b
.
This commit is contained in:
parent
770368b338
commit
599b65c69d
|
@ -15,7 +15,6 @@ from django.db.models import Count
|
|||
from django.db.transaction import TransactionManagementError
|
||||
from django.test import (
|
||||
TransactionTestCase, skipUnlessDBFeature, override_settings)
|
||||
from django.utils.six import PY3
|
||||
from pytz import UTC
|
||||
|
||||
from ..utils import _get_table_cache_key
|
||||
|
@ -762,12 +761,12 @@ class ParameterTypeTestCase(TransactionTestCase):
|
|||
|
||||
with self.assertNumQueries(1):
|
||||
list(Test.objects.filter(bin=b'abc'))
|
||||
with self.assertNumQueries(0 if self.is_mysql and PY3 else 1):
|
||||
with self.assertNumQueries(0 if self.is_mysql else 1):
|
||||
list(Test.objects.filter(bin=b'abc'))
|
||||
|
||||
with self.assertNumQueries(1):
|
||||
list(Test.objects.filter(bin=b'def'))
|
||||
with self.assertNumQueries(0 if self.is_mysql and PY3 else 1):
|
||||
with self.assertNumQueries(0 if self.is_mysql else 1):
|
||||
list(Test.objects.filter(bin=b'def'))
|
||||
|
||||
def test_float(self):
|
||||
|
|
Loading…
Reference in New Issue