diff options
Diffstat (limited to 'test/dialect/postgresql/test_compiler.py')
-rw-r--r-- | test/dialect/postgresql/test_compiler.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/test/dialect/postgresql/test_compiler.py b/test/dialect/postgresql/test_compiler.py index 731141604..9fa5c9804 100644 --- a/test/dialect/postgresql/test_compiler.py +++ b/test/dialect/postgresql/test_compiler.py @@ -375,24 +375,22 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): tbl = Table('testtbl', m, Column('data', String)) idx1 = Index('test_idx1', tbl.c.data) - idx2 = Index('test_idx2', tbl.c.data, postgresql_with={"fillfactor": 50}) + idx2 = Index( + 'test_idx2', tbl.c.data, postgresql_with={"fillfactor": 50}) idx3 = Index('test_idx3', tbl.c.data, postgresql_using="gist", postgresql_with={"buffering": "off"}) self.assert_compile(schema.CreateIndex(idx1), 'CREATE INDEX test_idx1 ON testtbl ' - '(data)', - dialect=postgresql.dialect()) + '(data)') self.assert_compile(schema.CreateIndex(idx2), 'CREATE INDEX test_idx2 ON testtbl ' '(data) ' - 'WITH (fillfactor = 50)', - dialect=postgresql.dialect()) + 'WITH (fillfactor = 50)') self.assert_compile(schema.CreateIndex(idx3), 'CREATE INDEX test_idx3 ON testtbl ' 'USING gist (data) ' - 'WITH (buffering = off)', - dialect=postgresql.dialect()) + 'WITH (buffering = off)') def test_create_index_expr_gets_parens(self): m = MetaData() |