diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-04-18 12:38:08 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-04-18 12:38:08 -0400 |
commit | c718dea749204169db2b49ea5d18248cbfe6c76f (patch) | |
tree | b58eebdd20bd8a61c0743f406456474d51b945df /test/dialect/test_postgresql.py | |
parent | 214efa53a0856909ab234498e5849c6412c5ccd9 (diff) | |
download | sqlalchemy-c718dea749204169db2b49ea5d18248cbfe6c76f.tar.gz |
- Fixed the psycopg2_version parsing in the
psycopg2 dialect.
Diffstat (limited to 'test/dialect/test_postgresql.py')
-rw-r--r-- | test/dialect/test_postgresql.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py index e0128a77f..de7169579 100644 --- a/test/dialect/test_postgresql.py +++ b/test/dialect/test_postgresql.py @@ -1246,6 +1246,12 @@ class MiscTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL): version) @testing.only_on('postgresql+psycopg2', 'psycopg2-specific feature') + def test_psycopg2_version(self): + v = testing.db.dialect.psycopg2_version + assert testing.db.dialect.dbapi.__version__.\ + startswith(".".join(str(x) for x in v)) + + @testing.only_on('postgresql+psycopg2', 'psycopg2-specific feature') def test_notice_logging(self): log = logging.getLogger('sqlalchemy.dialects.postgresql') buf = logging.handlers.BufferingHandler(100) |