mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-21 16:12:03 -04:00
772374735d
tested using pycodestyle version 2.2.0 Fixes: #3885 Change-Id: I5df43adc3aefe318f9eeab72a078247a548ec566 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/343
19 lines
551 B
Python
19 lines
551 B
Python
from sqlalchemy.testing import eq_
|
|
from sqlalchemy.connectors import pyodbc
|
|
from sqlalchemy.testing import fixtures
|
|
|
|
|
|
class PyODBCTest(fixtures.TestBase):
|
|
def test_pyodbc_version(self):
|
|
connector = pyodbc.PyODBCConnector()
|
|
for vers, expected in [
|
|
('2.1.8', (2, 1, 8)),
|
|
("py3-3.0.1-beta4", (3, 0, 1, 'beta4')),
|
|
("10.15.17", (10, 15, 17)),
|
|
("crap.crap.crap", ()),
|
|
]:
|
|
eq_(
|
|
connector._parse_dbapi_version(vers),
|
|
expected
|
|
)
|