From 9608eb8f1adb3c3df69240090f9a7c86117ebc99 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 8 Dec 2012 17:50:51 -0500 Subject: [PATCH] attempt to hide these from 2to3 --- test/sql/test_compiler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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( -- 2.47.3