Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb314194

Browse files
[3.12]gh-105063: Disable test_peg_generator.TestCParser bco. ref leaks (GH-106024) (#106450)
Sincegh-104798 (Use setuptools in peg-generator and reenabletests), the TestCParser test case has been producing ref leaks.(cherry picked from commit41ad4df)Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
1 parent53605f2 commitb314194

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‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,18 @@ def test_parse(self):
7474
@support.requires_subprocess()
7575
classTestCParser(unittest.TestCase):
7676

77+
_has_run=False
78+
7779
@classmethod
7880
defsetUpClass(cls):
81+
ifcls._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+
raiseunittest.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)

[8]ページ先頭

©2009-2025 Movatter.jp