Refs #27996 -- Fixed postgres_tests crash if not running with PostgreSQL.
diff --git a/tests/postgres_tests/migrations/0001_setup_extensions.py b/tests/postgres_tests/migrations/0001_setup_extensions.py
index 3775295f259b2..bd5da83d155ca 100644
--- a/tests/postgres_tests/migrations/0001_setup_extensions.py
+++ b/tests/postgres_tests/migrations/0001_setup_extensions.py
@@ -19,7 +19,10 @@
     UnaccentExtension = mock.Mock()
     needs_crypto_extension = False
 else:
-    needs_crypto_extension = not connection.features.is_postgresql_13
+    needs_crypto_extension = (
+        connection.vendor == 'postgresql' and
+        not connection.features.is_postgresql_13
+    )
 
 
 class Migration(migrations.Migration):

https://github.com/django/django/pull/13241#pullrequestreview-459038045