summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/testing/plugin')
-rw-r--r--lib/sqlalchemy/testing/plugin/noseplugin.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/sqlalchemy/testing/plugin/noseplugin.py b/lib/sqlalchemy/testing/plugin/noseplugin.py
index c104c4614..81e724bbe 100644
--- a/lib/sqlalchemy/testing/plugin/noseplugin.py
+++ b/lib/sqlalchemy/testing/plugin/noseplugin.py
@@ -243,6 +243,7 @@ def _requirements(options, file_config):
def _post_setup_options(opt, file_config):
from sqlalchemy.testing import config
config.options = options
+ config.file_config = file_config
@post
@@ -366,9 +367,14 @@ class NoseSQLAlchemy(Plugin):
if not check.enabled:
raise SkipTest(
- "'%s' unsupported on DB implementation '%s'" % (
- cls.__name__, config.db.name)
+ check.reason if check.reason
+ else
+ (
+ "'%s' unsupported on DB implementation '%s'" % (
+ cls.__name__, config.db.name
+ )
)
+ )
if cls.__unsupported_on__:
spec = exclusions.db_spec(*cls.__unsupported_on__)