Simplification.

This commit is contained in:
Bertrand Bordage 2015-12-18 12:37:34 +01:00
parent 85567cdbee
commit be01f2d6fa

View file

@ -14,11 +14,11 @@ from django.test import TransactionTestCase, override_settings
from psycopg2.extras import NumericRange, DateRange, DateTimeTZRange
from pytz import timezone
if django_version[:2] >= (1, 8):
if django_version >= (1, 8):
from .models import PostgresModel, Test
@skipUnless(connection.vendor == 'postgresql' and django_version[:2] >= (1, 8),
@skipUnless(connection.vendor == 'postgresql' and django_version >= (1, 8),
'This test is only for PostgreSQL and Django >= 1.8')
@skipIf(isinstance(caches['default'], FileBasedCache)
and python_version_tuple()[:2] == ('2', '7'),