From: Mike Bayer Date: Fri, 19 Nov 2010 01:12:24 +0000 (-0500) Subject: skip on 2.4 X-Git-Tag: rel_0_7b1~256 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e15fa0342d2ac83414c563abd8fd478251d4d35f;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git skip on 2.4 --- 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