summaryrefslogtreecommitdiff
path: root/test/engine/parseconnect.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-04-17 20:49:35 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-04-17 20:49:35 +0000
commitaabb6e530b05bee9cc5c2382a308a987abd6168e (patch)
treecd937947baf100d75e679e2f6d40e3a287ffc196 /test/engine/parseconnect.py
parent8d7a271b8687dbcb58cac713f9e16e445d242881 (diff)
downloadsqlalchemy-aabb6e530b05bee9cc5c2382a308a987abd6168e.tar.gz
- the dialects within sqlalchemy.databases become a setuptools
entry points. loading the built-in database dialects works the same as always, but if none found will fall back to trying pkg_resources to load an external module [ticket:521]
Diffstat (limited to 'test/engine/parseconnect.py')
-rw-r--r--test/engine/parseconnect.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/engine/parseconnect.py b/test/engine/parseconnect.py
index 01e4efbf1..49f71f881 100644
--- a/test/engine/parseconnect.py
+++ b/test/engine/parseconnect.py
@@ -70,7 +70,13 @@ class CreateEngineTest(PersistTest):
def testbadargs(self):
# good arg, use MockDBAPI to prevent oracle import errors
e = create_engine('oracle://', use_ansi=True, module=MockDBAPI())
-
+
+ try:
+ e = create_engine("foobar://", module=MockDBAPI())
+ assert False
+ except ImportError:
+ assert True
+
# bad arg
try:
e = create_engine('postgres://', use_ansi=True, module=MockDBAPI())