summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tools
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-09-17 16:04:46 (GMT)
committerGitHub <noreply@github.com>2019-09-17 16:04:46 (GMT)
commit6fbc924696b4b5097c273c06ca2d82662940e184 (patch)
tree640f35e079647eabd8caa9cf3e58e8105dd9b511 /Lib/test/test_tools
parentc275312a6284bd319ea33c9abd7e15c230eca43f (diff)
downloadcpython-6fbc924696b4b5097c273c06ca2d82662940e184.zip
cpython-6fbc924696b4b5097c273c06ca2d82662940e184.tar.gz
cpython-6fbc924696b4b5097c273c06ca2d82662940e184.tar.bz2
bpo-38187: Fix reference leak in test_tools (GH-16233)
Diffstat (limited to 'Lib/test/test_tools')
-rw-r--r--Lib/test/test_tools/test_c_analyzer/test_c_analyzer_common/test_known.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_tools/test_c_analyzer/test_c_analyzer_common/test_known.py b/Lib/test/test_tools/test_c_analyzer/test_c_analyzer_common/test_known.py
index 215023d..93100e0 100644
--- a/Lib/test/test_tools/test_c_analyzer/test_c_analyzer_common/test_known.py
+++ b/Lib/test/test_tools/test_c_analyzer/test_c_analyzer_common/test_known.py
@@ -15,6 +15,9 @@ class FromFileTests(unittest.TestCase):
_return_read_tsv = ()
+ def tearDown(self):
+ Variable._isglobal.instances.clear()
+
@property
def calls(self):
try: