From 82b3b84a78055844ee07d5d97843a4fc72872e28 Mon Sep 17 00:00:00 2001 From: David Smith Date: Sun, 24 Aug 2025 08:23:54 +0100 Subject: Fixed OGRInspectTest.test_time_field with memory Spatialite database. --- tests/gis_tests/inspectapp/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/gis_tests/inspectapp/tests.py b/tests/gis_tests/inspectapp/tests.py index 00a3507b59..43227d232d 100644 --- a/tests/gis_tests/inspectapp/tests.py +++ b/tests/gis_tests/inspectapp/tests.py @@ -6,6 +6,7 @@ from django.contrib.gis.gdal import GDAL_VERSION, Driver, GDALException from django.contrib.gis.utils.ogrinspect import ogrinspect from django.core.management import call_command from django.db import connection, connections +from django.db.backends.sqlite3.creation import DatabaseCreation from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature from django.test.utils import modify_settings @@ -233,7 +234,7 @@ def get_ogr_db_string(): return None # SQLite/SpatiaLite in-memory databases - if db["NAME"] == ":memory:": + if DatabaseCreation.is_in_memory_db(db["NAME"]): return None # Build the params of the OGR database connection string -- cgit v1.3