mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-06 17:01:07 -04:00
1e278de4cc
Applied on top of a pure run of black -l 79 in I7eda77fed3d8e73df84b3651fd6cfcfe858d4dc9, this set of changes resolves all remaining flake8 conditions for those codes we have enabled in setup.cfg. Included are resolutions for all remaining flake8 issues including shadowed builtins, long lines, import order, unused imports, duplicate imports, and docstring issues. Change-Id: I4f72d3ba1380dd601610ff80b8fb06a2aff8b0fe
16 lines
505 B
Python
16 lines
505 B
Python
from sqlalchemy.connectors import pyodbc
|
|
from sqlalchemy.testing import eq_
|
|
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)
|