From: Mike Bayer Date: Fri, 24 Jun 2016 02:19:55 +0000 (-0400) Subject: - adjust boolean no_ck test to not use Boolean type X-Git-Tag: rel_0_8_7~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ab6f88705d77859fef4572b059e1db2e0f65dbd;p=thirdparty%2Fsqlalchemy%2Falembic.git - adjust boolean no_ck test to not use Boolean type to insert a non 0/1 integer; SQLA 1.1 now coerces it to 1/0 Change-Id: I4447547b98a5178c7a1185d5788bfb58ae8c23ee --- diff --git a/tests/test_batch.py b/tests/test_batch.py index 490aee37..7dad62ff 100644 --- a/tests/test_batch.py +++ b/tests/test_batch.py @@ -1268,7 +1268,11 @@ class BatchRoundTripTest(TestBase): bar.create(self.conn) self.conn.execute(bar.insert(), {'id': 1, 'flag': True}) self.conn.execute(bar.insert(), {'id': 2, 'flag': False}) - self.conn.execute(bar.insert(), {'id': 3, 'flag': 5}) + self.conn.execute( + # override Boolean type which as of 1.1 coerces numerics + # to 1/0 + text("insert into bar (id, flag) values (:id, :flag)"), + {'id': 3, 'flag': 5}) with self.op.batch_alter_table( "bar",