summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-08-20 06:50:14 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-08-20 06:50:14 (GMT)
commit68c1f1ed034bc0084596e19540910623ecbf64de (patch)
tree053ef2b8c189e2b30189bb4e7cb2bf20edc84cf1 /Lib
parent17cfc86422ff27c5c1d88ec31c1449850bc5df68 (diff)
downloadcpython-68c1f1ed034bc0084596e19540910623ecbf64de.zip
cpython-68c1f1ed034bc0084596e19540910623ecbf64de.tar.gz
cpython-68c1f1ed034bc0084596e19540910623ecbf64de.tar.bz2
Issue #27787: Clean up weak references before checking for dangling threads
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/regrtest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index fecfd09..ba8a780 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -1258,6 +1258,7 @@ class saved_test_environment:
def __exit__(self, exc_type, exc_val, exc_tb):
saved_values = self.saved_values
del self.saved_values
+ support.gc_collect() # Some resources use weak references
for name, get, restore in self.resource_info():
current = get()
original = saved_values.pop(name)