From: Mike Bayer Date: Sat, 8 Dec 2012 22:50:51 +0000 (-0500) Subject: attempt to hide these from 2to3 X-Git-Tag: rel_0_8_0b2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9608eb8f1adb3c3df69240090f9a7c86117ebc99;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git attempt to hide these from 2to3 --- diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index f58d25db01..e8fea2f7aa 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -2554,18 +2554,18 @@ class CRUDTest(fixtures.TestBase, AssertsCompiledSQL): "INSERT INTO sometable (foo) VALUES (foobar())", params={}) def test_empty_insert_default(self): - stmt = table1.insert().values() + stmt = table1.insert().values({}) # hide from 2to3 self.assert_compile(stmt, "INSERT INTO mytable () VALUES ()") def test_empty_insert_default_values(self): - stmt = table1.insert().values() + stmt = table1.insert().values({}) # hide from 2to3 dialect = default.DefaultDialect() dialect.supports_empty_insert = dialect.supports_default_values = True self.assert_compile(stmt, "INSERT INTO mytable DEFAULT VALUES", dialect=dialect) def test_empty_insert_not_supported(self): - stmt = table1.insert().values() + stmt = table1.insert().values({}) # hide from 2to3 dialect = default.DefaultDialect() dialect.supports_empty_insert = dialect.supports_default_values = False assert_raises_message(