summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2025-08-24 08:23:54 +0100
committerNatalia <124304+nessita@users.noreply.github.com>2025-09-18 09:35:32 -0300
commit5484d1f2b0af95cf7d8e4765c52c4599a700e756 (patch)
tree37f214da1b2ceec723e69c76b75acdcdba12666b /tests
parentd8e9dec1ada659755595e2d90a3492f8f805f394 (diff)
[5.2.x] Fixed OGRInspectTest.test_time_field with memory Spatialite database.
Backport of 82b3b84a78055844ee07d5d97843a4fc72872e28 from main.
Diffstat (limited to 'tests')
-rw-r--r--tests/gis_tests/inspectapp/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gis_tests/inspectapp/tests.py b/tests/gis_tests/inspectapp/tests.py
index ca5d5214dd..ab7fe39a5d 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
@@ -232,7 +233,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