From e15fa0342d2ac83414c563abd8fd478251d4d35f Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 18 Nov 2010 20:12:24 -0500 Subject: [PATCH] skip on 2.4 --- lib/sqlalchemy/test/requires.py | 9 +++++++++ test/dialect/test_postgresql.py | 2 ++ 2 files changed, 11 insertions(+) diff --git a/lib/sqlalchemy/test/requires.py b/lib/sqlalchemy/test/requires.py index d29b7abc25..08fde66c30 100644 --- a/lib/sqlalchemy/test/requires.py +++ b/lib/sqlalchemy/test/requires.py @@ -294,6 +294,15 @@ def python26(fn): "Python version 2.6 or greater is required" ) ) + +def python25(fn): + return _chain_decorators_on( + fn, + skip_if( + lambda: sys.version_info < (2, 5), + "Python version 2.5 or greater is required" + ) + ) def _has_cextensions(): try: diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py index f3eb91ef26..150dacf180 100644 --- a/test/dialect/test_postgresql.py +++ b/test/dialect/test_postgresql.py @@ -1889,6 +1889,7 @@ class UUIDTest(TestBase): __only_on__ = 'postgresql' + @testing.requires.python25 @testing.fails_on('postgresql+pg8000', 'No support for UUID type') def test_uuid_string(self): import uuid @@ -1900,6 +1901,7 @@ class UUIDTest(TestBase): str(uuid.uuid4()) ) + @testing.requires.python25 @testing.fails_on('postgresql+pg8000', 'No support for UUID type') def test_uuid_uuid(self): import uuid -- 2.47.2