]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Adjust tests for pyodbc 4.0.22
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 24 Jan 2018 22:27:10 +0000 (17:27 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 24 Jan 2018 23:07:35 +0000 (18:07 -0500)
commit907c3dc1954d35cad50d9db4f652586e1066ed5d
tree20fcafb1615ed58bb81b587e644eaa1c65374f13
parent92cabe2d8803c5f4aa3e627ef131ffa765ddc1c6
Adjust tests for pyodbc 4.0.22

pyodbc 4.0.22 is no longer allowing a datetime to be truncated
into a date, and additionally is asserting that numeric truncation
is not occurring; previously, it looks like we could send a
decimal of -1E-25 through the driver but we were only getting
back -1E-20, the test failed to check this.  Not clear if the
larger precision worked fully at some point, but in any case,
it doesn't work now so just remove those values from the test.

Change-Id: I66c7863b1708eb72f48173083b4ef78c93893b52
lib/sqlalchemy/dialects/mssql/pyodbc.py
test/dialect/mssql/test_types.py
test/requirements.py