summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/config.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-05-01 13:15:51 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-05-01 13:15:51 -0400
commit2ef1c56436d25e8a710a8679c59400c0e4009cd6 (patch)
tree0a68433ec8225880afb4802d19579e6c6ef9324a /lib/sqlalchemy/testing/config.py
parent95949db715ff54be01bfd260a51903ede60597ae (diff)
downloadsqlalchemy-2ef1c56436d25e8a710a8679c59400c0e4009cd6.tar.gz
- move away from explicit raises of SkipTest, instead call a
function patched onto config. nose/pytest backends now fill in their exception class here only when loaded - use more public seeming api to get at py.test Skipped exception
Diffstat (limited to 'lib/sqlalchemy/testing/config.py')
-rw-r--r--lib/sqlalchemy/testing/config.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/config.py b/lib/sqlalchemy/testing/config.py
index d429c9f4e..a3d6e1690 100644
--- a/lib/sqlalchemy/testing/config.py
+++ b/lib/sqlalchemy/testing/config.py
@@ -15,6 +15,7 @@ file_config = None
test_schema = None
test_schema_2 = None
_current = None
+_skip_test_exception = None
class Config(object):
@@ -83,3 +84,9 @@ class Config(object):
for cfg in cls.all_configs():
yield cfg.db
+ def skip_test(self, msg):
+ skip_test(msg)
+
+
+def skip_test(msg):
+ raise _skip_test_exception(msg)