mirror of
https://github.com/django/django.git
synced 2025-07-18 18:55:18 +00:00
Fixed #24290 -- Skipped postgres_tests if not running with PostgreSQL.
This commit is contained in:
parent
3adc5f1ee6
commit
8b39f33d78
5 changed files with 6 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue