diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-09-27 22:40:09 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-09-27 23:31:12 -0400 |
commit | cda023bbe391d175c80c4d82196538b42575d937 (patch) | |
tree | c8f1fd5f587d3616acef3e42cd48d0dc60026e0b /lib/sqlalchemy/dialects/postgresql/json.py | |
parent | ffafbd4b9657a4ee8bec57c0861414144f37bdc5 (diff) | |
download | sqlalchemy-cda023bbe391d175c80c4d82196538b42575d937.tar.gz |
dont use uninstrument event to dispose registry entry
since 450f5c0d6519a439f4025c3892fe4c we've been seeing
errors during the uninstrument_class event where first
we saw an internal weakref being collected earlier than seen,
then fixing that we saw the listener collection changing during
iteration for similar reasons.
we would assume the issue is because of the interaction between
mapper / instrumentation/ registry during a test teardown
and the usage of the uninstrument_class event within this
interaction. this interaction is too fundamental to be
relying upon this event in any case and when I wrote this
new code i was planning on changing that part in any case,
I just forgot.
Change-Id: I15744e01bb4d3349bfd529593ebd23eae658eaab
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/json.py')
0 files changed, 0 insertions, 0 deletions