summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2017-05-09 15:51:08 -0400
committerGerrit Code Review <gerrit@awstats.zzzcomputing.com>2017-05-09 15:51:08 -0400
commit1ed19fc623f9dbfec33e6e81d93454fe025b63ed (patch)
tree10ae4568b0d254f62aae1e7cb568c082a9ca2750 /test
parent735fbfdf4907ba7888b8408bceaf8ffb99602720 (diff)
parent13c2a8a51053f1bb85b4847632801a7e41f20d64 (diff)
downloadsqlalchemy-1ed19fc623f9dbfec33e6e81d93454fe025b63ed.tar.gz
Merge "Use regexp to parse cx_oracle version string"
Diffstat (limited to 'test')
-rw-r--r--test/dialect/test_oracle.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/dialect/test_oracle.py b/test/dialect/test_oracle.py
index f6e1e14c7..3219a1b6d 100644
--- a/test/dialect/test_oracle.py
+++ b/test/dialect/test_oracle.py
@@ -24,6 +24,26 @@ from sqlalchemy import sql
from sqlalchemy.testing.mock import Mock
+class DialectTest(fixtures.TestBase):
+ def test_cx_oracle_version_parse(self):
+ dialect = cx_oracle.OracleDialect_cx_oracle()
+
+ eq_(
+ dialect._parse_cx_oracle_ver("5.2"),
+ (5, 2)
+ )
+
+ eq_(
+ dialect._parse_cx_oracle_ver("5.0.1"),
+ (5, 0, 1)
+ )
+
+ eq_(
+ dialect._parse_cx_oracle_ver("6.0b1"),
+ (6, 0)
+ )
+
+
class OutParamTest(fixtures.TestBase, AssertsExecutionResults):
__only_on__ = 'oracle+cx_oracle'
__backend__ = True
@@ -2260,3 +2280,4 @@ class ServiceNameTest(fixtures.TestBase):
create_engine, url_string,
_initialize=False
)
+