mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-14 12:47:22 -04:00
Test for short term reference cycles and resolve as many as possible
Added test support and repaired a wide variety of unnecessary reference cycles created for short-lived objects, mostly in the area of ORM queries. Fixes: #5056 Change-Id: Ifd93856eba550483f95f9ae63d49f36ab068b85a
This commit is contained in:
@@ -102,8 +102,8 @@ class TraversalTest(fixtures.TestBase, AssertsExecutionResults):
|
||||
return True
|
||||
return False
|
||||
|
||||
def _copy_internals(self, clone=_clone):
|
||||
self.items = [clone(i) for i in self.items]
|
||||
def _copy_internals(self, clone=_clone, **kw):
|
||||
self.items = [clone(i, **kw) for i in self.items]
|
||||
|
||||
def get_children(self, **kwargs):
|
||||
return self.items
|
||||
|
||||
Reference in New Issue
Block a user