From e536fa5ce1f2249d171c5890751aea58e51b3849 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 14 May 2020 06:33:00 +0200 Subject: Fixed #31579 -- Dropped support for PostgreSQL 9.5 and PostGIS 2.2. --- tests/postgres_tests/migrations/0001_setup_extensions.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/postgres_tests/migrations') diff --git a/tests/postgres_tests/migrations/0001_setup_extensions.py b/tests/postgres_tests/migrations/0001_setup_extensions.py index d0a21791ba..5064f7ff99 100644 --- a/tests/postgres_tests/migrations/0001_setup_extensions.py +++ b/tests/postgres_tests/migrations/0001_setup_extensions.py @@ -1,6 +1,6 @@ from unittest import mock -from django.db import connection, migrations +from django.db import migrations try: from django.contrib.postgres.operations import ( @@ -23,11 +23,7 @@ except ImportError: class Migration(migrations.Migration): operations = [ - ( - BloomExtension() - if getattr(connection.features, 'has_bloom_index', False) - else mock.Mock() - ), + BloomExtension(), BtreeGinExtension(), BtreeGistExtension(), CITextExtension(), -- cgit v1.3