diff options
-rw-r--r-- | lib/sqlalchemy/test/requires.py | 9 | ||||
-rw-r--r-- | test/dialect/test_postgresql.py | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/sqlalchemy/test/requires.py b/lib/sqlalchemy/test/requires.py index d29b7abc2..08fde66c3 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 f3eb91ef2..150dacf18 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 |