From: CaselIT Date: Sat, 25 Jun 2022 21:19:20 +0000 (+0200) Subject: Make alembic compatible with comments on constraints X-Git-Tag: rel_1_8_1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bff2ce3a118f76f803b8806db07c421a289d03b1;p=thirdparty%2Fsqlalchemy%2Falembic.git Make alembic compatible with comments on constraints Make alembic test compatible with comments on constraint change added in Ia60f578595afdbd6089541c9a00e37997ef78ad3 Change-Id: I9ad803df1d3ccf2a5111266b781061936717b8c8 --- diff --git a/tests/test_batch.py b/tests/test_batch.py index b19fa983..adf76cd5 100644 --- a/tests/test_batch.py +++ b/tests/test_batch.py @@ -1731,6 +1731,8 @@ class BatchRoundTripTest(TestBase): ck_consts[0]["sqltext"] = re.sub( r"[\'\"`\(\)]", "", ck_consts[0]["sqltext"] ) + for ck in ck_consts: + ck.pop("comment", None) eq_(ck_consts, [{"sqltext": "x > 0", "name": "newck"}]) @testing.combinations(("always",), ("auto",), argnames="recreate")