mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #24290 -- Skipped postgres_tests if not running with PostgreSQL.
This commit is contained in:
@@ -18,8 +18,6 @@ from .models import RangesModel
|
||||
|
||||
|
||||
def skipUnlessPG92(test):
|
||||
if not connection.vendor == 'postgresql':
|
||||
return unittest.skip('PostgreSQL required')(test)
|
||||
PG_VERSION = connection.pg_version
|
||||
if PG_VERSION < 90200:
|
||||
return unittest.skip('PostgreSQL >= 9.2 required')(test)
|
||||
|
||||
Reference in New Issue
Block a user