]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Create a framework to allow all SQLALCHEMY_WARN_20 to pass
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Aug 2020 21:24:27 +0000 (17:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 16 Sep 2020 16:31:05 +0000 (12:31 -0400)
commit7e864fc7b1b950760cbf02e6dcd5aa5aac267400
tree2382b016c3eb82ae463719cc948f45ccd2a226a2
parent8ebc8184392e20727748cd1405245e527f17e111
Create a framework to allow all SQLALCHEMY_WARN_20 to pass

As the test suite has widespread use of many patterns
that are deprecated, enable SQLALCHEMY_WARN_20 globally
for the test suite but then break the warnings filter
out into a whole list of all the individual warnings
we are looking for.  this way individual changesets
can target a specific class of warning, as many of these
warnings will indivdidually affect dozens of files
and potentially hundreds of lines of code.

Many warnings are also resolved here as this
patch started out that way.   From this point
forward there should be changesets that target a
subset of the warnings at a time.

For expediency, updates some migration 2.0 docs
for ORM as well.

Change-Id: I98b8defdf7c37b818b3824d02f7668e3f5f31c94
46 files changed:
doc/build/changelog/migration_20.rst
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/util.py
lib/sqlalchemy/ext/horizontal_shard.py
lib/sqlalchemy/orm/decl_api.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/util.py
lib/sqlalchemy/sql/dml.py
lib/sqlalchemy/sql/selectable.py
lib/sqlalchemy/testing/fixtures.py
lib/sqlalchemy/testing/profiling.py
lib/sqlalchemy/testing/suite/test_insert.py
lib/sqlalchemy/testing/warnings.py
test/dialect/postgresql/test_dialect.py
test/dialect/postgresql/test_query.py
test/dialect/postgresql/test_reflection.py
test/dialect/postgresql/test_types.py
test/engine/test_execute.py
test/orm/inheritance/_poly_fixtures.py
test/orm/inheritance/test_abc_inheritance.py
test/orm/inheritance/test_abc_polymorphic.py
test/orm/inheritance/test_assorted_poly.py
test/orm/inheritance/test_basic.py
test/orm/inheritance/test_concrete.py
test/orm/inheritance/test_magazine.py
test/orm/inheritance/test_manytomany.py
test/orm/inheritance/test_poly_linked_list.py
test/orm/inheritance/test_poly_persistence.py
test/orm/inheritance/test_polymorphic_rel.py
test/orm/inheritance/test_productspec.py
test/orm/inheritance/test_relationship.py
test/orm/inheritance/test_single.py
test/orm/test_deprecations.py
test/sql/test_case_statement.py
test/sql/test_defaults.py
test/sql/test_delete.py
test/sql/test_deprecations.py
test/sql/test_external_traversal.py
test/sql/test_functions.py
test/sql/test_insert.py
test/sql/test_insert_exec.py
test/sql/test_labels.py
test/sql/test_returning.py
test/sql/test_update.py
tox.ini