]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
skip on 2.4
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Nov 2010 01:12:24 +0000 (20:12 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Nov 2010 01:12:24 +0000 (20:12 -0500)
lib/sqlalchemy/test/requires.py
test/dialect/test_postgresql.py

index d29b7abc2516505ebc7bcfca0761e4a136fbcf77..08fde66c30018cd80a41ad2ea95f4576f79332cb 100644 (file)
@@ -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:
index f3eb91ef264090f029b1e440586747bd7607fe88..150dacf180a99f0e1e5a2ee02e4b0a57dabe1294 100644 (file)
@@ -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