]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- no unitest.SkipTest in 2.6...arggggg
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 4 Mar 2014 17:58:14 +0000 (12:58 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 4 Mar 2014 17:58:14 +0000 (12:58 -0500)
lib/sqlalchemy/testing/plugin/plugin_base.py

index 50efdfcf0cfaeb8a6caed8e023d53ed84e65b753..6a2814109e1bdf9922972dad2476d54acc8850ea 100644 (file)
@@ -13,7 +13,15 @@ via py.test.
 """
 
 from __future__ import absolute_import
-from unittest import SkipTest
+try:
+    # needs 2.7...
+    from unittest import SkipTest
+except ImportError:
+    try:
+        from nose import SkipTest
+    except ImportError:
+        from _pytest.runner import Skipped as SkipTest
+
 import sys
 import re