diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-07-31 12:38:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-31 12:38:09 +0200 |
| commit | 88af11c58baf0eae2fa947a5f0733906ffe6bb38 (patch) | |
| tree | cddd0155d46517869eafd5b0b7fbc207a72503f6 /tests/postgres_tests | |
| parent | 8703680ebee47bfa9e912a30a0509798500bf42a (diff) | |
Refs #27996 -- Fixed postgres_tests crash if not running with PostgreSQL.
Diffstat (limited to 'tests/postgres_tests')
| -rw-r--r-- | tests/postgres_tests/migrations/0001_setup_extensions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/postgres_tests/migrations/0001_setup_extensions.py b/tests/postgres_tests/migrations/0001_setup_extensions.py index 3775295f25..bd5da83d15 100644 --- a/tests/postgres_tests/migrations/0001_setup_extensions.py +++ b/tests/postgres_tests/migrations/0001_setup_extensions.py @@ -19,7 +19,10 @@ except ImportError: 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): |
