]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
- test py36
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Jan 2017 15:29:57 +0000 (10:29 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 12 Jan 2017 18:25:02 +0000 (13:25 -0500)
- Current mysqlclient does not accept "bytes" on py3k, SQLAlchemy 0.9
still lists this client (the original mysqldb version) as
"supports_unicode_statements=False" so is no longer functional on py3k.
- Rollback transaction after table drop; it seems py3.6 sqlite3
suddenly turned on transactional DDL for SQLite

Change-Id: Ic3b7881583bde5602e54811cf6a149761038b9fd

tests/test_version_table.py
tox.ini

index 92cb447c2101e1550ef92bc02f4137e380239241..45a30dfa7cf7cdd224183728ae7e1e653aeddeb3 100644 (file)
@@ -35,8 +35,8 @@ class TestMigrationContext(TestBase):
         self.transaction = self.connection.begin()
 
     def tearDown(self):
-        version_table.drop(self.connection, checkfirst=True)
         self.transaction.rollback()
+        version_table.drop(self.connection, checkfirst=True)
         self.connection.close()
 
     def make_one(self, **kwargs):
diff --git a/tox.ini b/tox.ini
index 42918463d11cda080748db99fb6a9b5fbc08aea1..6505b5208d30bd23dd0e345ad1298e6ee996a05d 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,9 @@
 [tox]
 minversion=1.8.dev1
-envlist = py{27,33,34,35}-sqla{09,10,11}, py{27}-sqla{079,084}
+
+# current mysqlclient fails with <=SQLA 0.9 on py3k due to 
+# old unicode statements flag
+envlist = py{27,33,34,35,36}-sqla{10,11}, py{27}-sqla{079,084,09}
 
 SQLA_REPO = {env:SQLA_REPO:git+http://git.sqlalchemy.org/sqlalchemy.git}