Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b314194

Browse files
[3.12] gh-105063: Disable test_peg_generator.TestCParser bco. ref leaks (GH-106024) (#106450)
Since gh-104798 (Use setuptools in peg-generator and reenable tests), the TestCParser test case has been producing ref leaks. (cherry picked from commit 41ad4df) Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent 53605f2 commit b314194

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Lib/test/test_peg_generator/test_c_parser.py

+10
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,18 @@ def test_parse(self):
7474
@support.requires_subprocess()
7575
class TestCParser(unittest.TestCase):
7676

77+
_has_run = False
78+
7779
@classmethod
7880
def setUpClass(cls):
81+
if cls._has_run:
82+
# Since gh-104798 (Use setuptools in peg-generator and reenable
83+
# tests), this test case has been producing ref leaks. Initial
84+
# debugging points to bug(s) in setuptools and/or importlib.
85+
# See gh-105063 for more info.
86+
raise unittest.SkipTest("gh-105063: can not rerun because of ref. leaks")
87+
cls._has_run = True
88+
7989
# When running under regtest, a separate tempdir is used
8090
# as the current directory and watched for left-overs.
8191
# Reusing that as the base for temporary directories

0 commit comments

Comments
 (0)