Commit 6fbc9246 authored by Pablo Galindo's avatar Pablo Galindo Committed by GitHub

bpo-38187: Fix reference leak in test_tools (GH-16233)

parent c275312a
......@@ -15,6 +15,9 @@ class FromFileTests(unittest.TestCase):
_return_read_tsv = ()
def tearDown(self):
Variable._isglobal.instances.clear()
@property
def calls(self):
try:
......
......@@ -22,6 +22,9 @@ class Variable(_NTBase,
__slots__ = ()
_isglobal = util.Slot()
def __del__(self):
del self._isglobal
@classonly
def from_parts(cls, filename, funcname, name, vartype, isglobal=False):
id = info.ID(filename, funcname, name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment