diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-12-27 15:02:31 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-12-30 14:07:18 -0500 |
commit | 04fbb9e63c098dd2de40b545eed210dfd93893ce (patch) | |
tree | f509e09f71c9a382b2d7934cf81262ad019df377 /test/base/test_utils.py | |
parent | 9d4a58d35c53484a1de66396139fc34cd65f5be8 (diff) | |
download | sqlalchemy-04fbb9e63c098dd2de40b545eed210dfd93893ce.tar.gz |
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
Diffstat (limited to 'test/base/test_utils.py')
-rw-r--r-- | test/base/test_utils.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/base/test_utils.py b/test/base/test_utils.py index 7cdda0c23..e4d5a4d5f 100644 --- a/test/base/test_utils.py +++ b/test/base/test_utils.py @@ -188,19 +188,6 @@ class WeakSequenceTest(fixtures.TestBase): eq_(len(w), 2) eq_(len(w._storage), 2) - @testing.requires.predictable_gc - def test_cleanout_container(self): - import weakref - - class Foo(object): - pass - - f = Foo() - w = WeakSequence([f]) - w_wref = weakref.ref(w) - del w - eq_(w_wref(), None) - class OrderedDictTest(fixtures.TestBase): def test_odict(self): |