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/profiling.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/profiling.py')
-rw-r--r-- | lib/sqlalchemy/testing/profiling.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sqlalchemy/testing/profiling.py b/lib/sqlalchemy/testing/profiling.py index 65fe165cd..357735656 100644 --- a/lib/sqlalchemy/testing/profiling.py +++ b/lib/sqlalchemy/testing/profiling.py @@ -16,7 +16,6 @@ import os import sys from .util import gc_collect from . import config -from .plugin.plugin_base import SkipTest import pstats import collections import contextlib @@ -205,10 +204,11 @@ def count_functions(variance=0.05): raise SkipTest("cProfile is not installed") if not _profile_stats.has_stats() and not _profile_stats.write: - raise SkipTest("No profiling stats available on this " - "platform for this function. Run tests with " - "--write-profiles to add statistics to %s for " - "this platform." % _profile_stats.short_fname) + config.skip_test( + "No profiling stats available on this " + "platform for this function. Run tests with " + "--write-profiles to add statistics to %s for " + "this platform." % _profile_stats.short_fname) gc_collect() |