mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Refs #28574 -- Used feature flag for PostgreSQL version check.
This commit is contained in:
parent
bc94e3c1a2
commit
a5c5ae7d91
@ -56,7 +56,7 @@ class ExplainTests(TestCase):
|
||||
{'verbose': True, 'timing': True, 'analyze': True},
|
||||
{'verbose': False, 'timing': False, 'analyze': True},
|
||||
]
|
||||
if connection.pg_version >= 100000:
|
||||
if connection.features.is_postgresql_10:
|
||||
test_options.append({'summary': True})
|
||||
for options in test_options:
|
||||
with self.subTest(**options), transaction.atomic():
|
||||
|
Loading…
Reference in New Issue
Block a user