summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSean McCully <smccully@scorpion.local.nunet.net>2017-03-29 16:14:02 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-03-29 16:17:30 -0400
commita86764d99b3a440cdc27b437ef2de9d393ca8036 (patch)
tree51de8197ce849ddb5585b126c756739218a7e7a9 /test
parent6220e09f6149bb4bc12e12c2557e1ca750fb65e5 (diff)
downloadsqlalchemy-a86764d99b3a440cdc27b437ef2de9d393ca8036.tar.gz
Support Postgresql development version numbers
Added support for parsing the Postgresql version string for a development version like "PostgreSQL 10devel". Pull request courtesy Sean McCully. Change-Id: I7bc18bc4d290349c23e9796367b7d694d0873096 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/351
Diffstat (limited to 'test')
-rw-r--r--test/dialect/postgresql/test_dialect.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/dialect/postgresql/test_dialect.py b/test/dialect/postgresql/test_dialect.py
index a9ef09dbd..f03b48790 100644
--- a/test/dialect/postgresql/test_dialect.py
+++ b/test/dialect/postgresql/test_dialect.py
@@ -60,7 +60,10 @@ class MiscTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL):
'64-bit', (9, 1, 2)),
(
'[PostgreSQL 9.2.4 ] VMware vFabric Postgres 9.2.4.0 '
- 'release build 1080137', (9, 2, 4))]:
+ 'release build 1080137', (9, 2, 4)),
+ (
+ 'PostgreSQL 10devel on x86_64-pc-linux-gnu'
+ 'compiled by gcc (GCC) 6.3.1 20170306, 64-bit', (10,))]:
eq_(testing.db.dialect._get_server_version_info(mock_conn(string)),
version)