From 2c1e517d0368934b70a571163ff56638673cc96b Mon Sep 17 00:00:00 2001 From: Gord Thompson Date: Sat, 27 Jun 2020 08:53:23 -0600 Subject: Rename Table.tometadata to to_metadata Renamed the :meth:`_schema.Table.tometadata` method to :meth:`_schema.Table.to_metadata`. The previous name remains with a deprecation warning. Updated the "decorate" utility function to support decoration of functions that include non-builtins as default values. Moves test for deprecated "databases" package into test/dialect/test_deprecations.py Fixes: #5413 Fixes: #5426 Change-Id: I6ed899871c935f9e46360127c17ccb7cf97cea6e --- test/dialect/postgresql/test_compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/dialect/postgresql/test_compiler.py') diff --git a/test/dialect/postgresql/test_compiler.py b/test/dialect/postgresql/test_compiler.py index b4ac69d2d..73d767602 100644 --- a/test/dialect/postgresql/test_compiler.py +++ b/test/dialect/postgresql/test_compiler.py @@ -829,7 +829,7 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): ) m2 = MetaData() - tbl2 = tbl.tometadata(m2) + tbl2 = tbl.to_metadata(m2) self.assert_compile( schema.CreateTable(tbl2), "CREATE TABLE testtbl (room SERIAL NOT NULL, " -- cgit v1.2.1