mirror of
https://github.com/django/django.git
synced 2025-10-04 07:46:37 +00:00
[1.8.x] Fixed #24290 -- Skipped postgres_tests if not running with PostgreSQL.
Backport of 8b39f33d78
from master
This commit is contained in:
parent
730fb593ad
commit
a00a0f8804
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