Browse Source
bpo-38187: Fix reference leak in test_tools (GH-16233)
pull/16238/head
Pablo Galindo
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
0 deletions
-
Lib/test/test_tools/test_c_analyzer/test_c_analyzer_common/test_known.py
-
Tools/c-analyzer/c_parser/info.py
|
|
@ -15,6 +15,9 @@ class FromFileTests(unittest.TestCase): |
|
|
|
|
|
|
|
|
_return_read_tsv = () |
|
|
_return_read_tsv = () |
|
|
|
|
|
|
|
|
|
|
|
def tearDown(self): |
|
|
|
|
|
Variable._isglobal.instances.clear() |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def calls(self): |
|
|
def calls(self): |
|
|
try: |
|
|
try: |
|
|
|
|
|
@ -22,6 +22,9 @@ class Variable(_NTBase, |
|
|
__slots__ = () |
|
|
__slots__ = () |
|
|
_isglobal = util.Slot() |
|
|
_isglobal = util.Slot() |
|
|
|
|
|
|
|
|
|
|
|
def __del__(self): |
|
|
|
|
|
del self._isglobal |
|
|
|
|
|
|
|
|
@classonly |
|
|
@classonly |
|
|
def from_parts(cls, filename, funcname, name, vartype, isglobal=False): |
|
|
def from_parts(cls, filename, funcname, name, vartype, isglobal=False): |
|
|
id = info.ID(filename, funcname, name) |
|
|
id = info.ID(filename, funcname, name) |
|
|
|