diff options
author | Stefano Rivera <stefano@rivera.za.net> | 2020-10-07 19:53:42 -0700 |
---|---|---|
committer | Stefano Rivera <stefano@rivera.za.net> | 2020-10-07 19:53:42 -0700 |
commit | da5e6b8da77b97e12683f7bdb0d1ab260c6bcb23 (patch) | |
tree | a17b1c58823b6c1d6e2daa993a9e77ea3d84fbbb /lib-python | |
parent | test: pypy's exception message differs (diff) | |
download | pypy-da5e6b8da77b97e12683f7bdb0d1ab260c6bcb23.tar.gz pypy-da5e6b8da77b97e12683f7bdb0d1ab260c6bcb23.tar.bz2 pypy-da5e6b8da77b97e12683f7bdb0d1ab260c6bcb23.zip |
test: Add an explicit garbage collection to trigger weakref death
Diffstat (limited to 'lib-python')
-rw-r--r-- | lib-python/2.7/test/test_xml_etree.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib-python/2.7/test/test_xml_etree.py b/lib-python/2.7/test/test_xml_etree.py index 205eb11c64..76c7890ed1 100644 --- a/lib-python/2.7/test/test_xml_etree.py +++ b/lib-python/2.7/test/test_xml_etree.py @@ -1583,6 +1583,7 @@ class BasicElementTest(unittest.TestCase): wref = weakref.ref(e, wref_cb) self.assertEqual(wref().tag, 'e') del e + gc_collect() self.assertEqual(flag, [True]) self.assertEqual(wref(), None) |