diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-05-01 13:15:51 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-05-01 13:15:51 -0400 |
| commit | 2ef1c56436d25e8a710a8679c59400c0e4009cd6 (patch) | |
| tree | 0a68433ec8225880afb4802d19579e6c6ef9324a /lib/sqlalchemy/testing/config.py | |
| parent | 95949db715ff54be01bfd260a51903ede60597ae (diff) | |
| download | sqlalchemy-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.py | 7 |
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) |
