1
0
mirror of https://github.com/django/django.git synced 2025-10-25 06:36:07 +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:
Tim Graham
2015-02-16 18:10:35 -05:00
parent 730fb593ad
commit a00a0f8804
5 changed files with 6 additions and 16 deletions

View File

@@ -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)