(self, *, run_workers: bool)
| 1305 | |
| 1306 | @unittest.skipUnless(support.Py_DEBUG, 'need a debug build') |
| 1307 | def check_huntrleaks(self, *, run_workers: bool): |
| 1308 | # test --huntrleaks |
| 1309 | code = textwrap.dedent(""" |
| 1310 | import unittest |
| 1311 | |
| 1312 | GLOBAL_LIST = [] |
| 1313 | |
| 1314 | class RefLeakTest(unittest.TestCase): |
| 1315 | def test_leak(self): |
| 1316 | GLOBAL_LIST.append(object()) |
| 1317 | """) |
| 1318 | self.check_leak(code, 'references', run_workers=run_workers) |
| 1319 | |
| 1320 | def test_huntrleaks(self): |
| 1321 | self.check_huntrleaks(run_workers=False) |
no test coverage detected