From: Daniel Stone Date: Sun, 29 Aug 2021 15:53:38 +0000 (+0100) Subject: Changed check for loaded attributes to be consistent X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6957%2Fhead;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Changed check for loaded attributes to be consistent * Check eagerly loaded addresses in AsyncSession tests now matches that of the regular Session --- diff --git a/test/ext/asyncio/test_session_py3k.py b/test/ext/asyncio/test_session_py3k.py index fc223c3417..6b40d53c1a 100644 --- a/test/ext/asyncio/test_session_py3k.py +++ b/test/ext/asyncio/test_session_py3k.py @@ -113,7 +113,7 @@ class AsyncSessionQueryTest(AsyncFixture): ) eq_(u.name, "jack") - eq_(len(u.addresses), 1) + eq_(len(u.__dict__["addresses"]), 1) @async_test @testing.requires.independent_cursors @@ -364,7 +364,7 @@ class AsyncSessionTransactionTest(AsyncFixture): ) eq_(new_u_merged.name, "new u1") - eq_(len(new_u_merged.addresses), 1) + eq_(len(new_u_merged.__dict__["addresses"]), 1) @async_test async def test_join_to_external_transaction(self, async_engine):