]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Make sure asyncpgfallback has __slots__
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 2 Dec 2020 01:55:06 +0000 (20:55 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 2 Dec 2020 01:55:06 +0000 (20:55 -0500)
commit869bd9cee0a1e6cde0699fb6184a35c50f74e138
treeb163c5648946611b6611f28b52a09448b9fed1d1
parent14c08d18885e16611b884bd76ba2811375de1731
Make sure asyncpgfallback has __slots__

the test suite failed to find that we started accessing
a non-existent slot "_isolation_setting" added by me in
9b779611f9, as the test suite makes use of the
AsyncAdaptFallback_asyncpg_connection subclass, which didn't
include __slots__ and therefore didn't catch that
_isolation_setting wasn't added to slots.

Fixes: #5739
Change-Id: Ibbbedc2ee0f1d1c9d91ba7898d755812deccb380
lib/sqlalchemy/dialects/postgresql/asyncpg.py