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/sql/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/sql/test_compiler.py')
-rw-r--r-- | test/sql/test_compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index c12543f82..28150d15e 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -4213,7 +4213,7 @@ class DDLTest(fixtures.TestBase, AssertsCompiledSQL): schema.CreateTable(t), "CREATE TABLE t (x INTEGER, z INTEGER)" ) m2 = MetaData() - t2 = t.tometadata(m2) + t2 = t.to_metadata(m2) self.assert_compile( schema.CreateTable(t2), "CREATE TABLE t (x INTEGER, z INTEGER)" ) |