mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Refs #27996 -- Skipped RandomUUID test on PostgreSQL 9.3.
This commit is contained in:
parent
f0d47ab3b6
commit
650bf6714d
3 changed files with 14 additions and 1 deletions
|
@ -7,6 +7,16 @@ from django.db.backends.signals import connection_created
|
|||
from django.test import TestCase, modify_settings
|
||||
|
||||
|
||||
def skipUnlessPG94(test):
|
||||
try:
|
||||
PG_VERSION = connection.pg_version
|
||||
except AttributeError:
|
||||
PG_VERSION = 0
|
||||
if PG_VERSION < 90400:
|
||||
return unittest.skip('PostgreSQL ≥ 9.4 required')(test)
|
||||
return test
|
||||
|
||||
|
||||
@unittest.skipUnless(connection.vendor == 'postgresql', "PostgreSQL specific tests")
|
||||
class PostgreSQLTestCase(TestCase):
|
||||
@classmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue