mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-03-16 21:30:23 +00:00
Revert "Fixes a test broken by mysqlclient 1.3.8."
This reverts commit eb64d1ce2b.
This commit is contained in:
parent
770368b338
commit
599b65c69d
1 changed files with 2 additions and 3 deletions
|
|
@ -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 a new issue