]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Changed check for loaded attributes to be consistent 6957/head
authorDaniel Stone <me@danstone.uk>
Sun, 29 Aug 2021 15:53:38 +0000 (16:53 +0100)
committerDaniel Stone <me@danstone.uk>
Sun, 29 Aug 2021 15:53:38 +0000 (16:53 +0100)
* Check eagerly loaded addresses in AsyncSession tests now matches that of the regular Session

test/ext/asyncio/test_session_py3k.py

index fc223c3417d65d532c4603ea51cc213fbc34223f..6b40d53c1a0d3348450194a64ffeb93f42788213 100644 (file)
@@ -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):