diff options
author | Gord Thompson <gord@gordthompson.com> | 2020-06-27 08:53:23 -0600 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-06-29 13:56:21 -0400 |
commit | 2c1e517d0368934b70a571163ff56638673cc96b (patch) | |
tree | fb4e65ab5372cf2e89984ccd1590fc43f27c99c4 /test/dialect/postgresql/test_compiler.py | |
parent | 5f5b56d646f154ee572c9de80449423304103bad (diff) | |
download | sqlalchemy-2c1e517d0368934b70a571163ff56638673cc96b.tar.gz |
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
Diffstat (limited to 'test/dialect/postgresql/test_compiler.py')
-rw-r--r-- | test/dialect/postgresql/test_compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, " |