summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-12-09 18:28:08 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-12-09 18:28:08 -0500
commit70d38af42e42016601ad81119b42f7bc381f5f43 (patch)
tree0eeceb8f93df7f85901a4df23ea73126e7496deb /lib/sqlalchemy/testing
parentee8dde9f1cfea8529c11e0f35d99a76d51e45322 (diff)
downloadsqlalchemy-70d38af42e42016601ad81119b42f7bc381f5f43.tar.gz
Fixed table reflection for Oracle when accessing a synonym that refers
to a DBLINK remote database; while the syntax has been present in the Oracle dialect for some time, up until now it has never been tested. The syntax has been tested against a sample database linking to itself, however there's still some uncertainty as to what should be used for the "owner" when querying the remote database for table information. Currently, the value of "username" from user_db_links is used to match the "owner". [ticket:2619]
Diffstat (limited to 'lib/sqlalchemy/testing')
-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__)