]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
apply list() around weakkeydictionary iteration
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 Jul 2021 14:36:53 +0000 (10:36 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 Jul 2021 14:37:52 +0000 (10:37 -0400)
commitf3c4735c0bef6325e977876e12fc476da363ec3c
tree7d3866f6cb69ae1f4857af0e60898ec5eff38920
parentdaaf36840bb3ebbaea3722413998604ed21d36a8
apply list() around weakkeydictionary iteration

Fixed an issue where clearing of mappers during things like test suite
teardowns could cause a "dictionary changed size" warning during garbage
collection, due to iteration of a weak-referencing dictionary. A ``list()``
has been applied to prevent concurrent GC from affecting this operation.

Fixes: #6771
Change-Id: I3e1d67e978b2726a282d8b327457f2d4b239a0c6
doc/build/changelog/unreleased_14/6771.rst [new file with mode: 0644]
lib/sqlalchemy/orm/decl_api.py