8000 [3.12] gh-105063: Disable test_peg_generator.TestCParser bco. ref leaks (GH-106024) by miss-islington · Pull Request #106450 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] gh-105063: Disable test_peg_generator.TestCParser bco. ref leaks (GH-106024) #106450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-105063: Disable test_peg_generator.TestCParser bco. ref leaks (GH-…
…106024)

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 <erlend.aasland@protonmail.com>
  • Loading branch information
erlend-aasland authored and miss-islington committed Jul 5, 2023
commit c8b2a49e7c3daa8bbddc1d4f89d6abd45d612f61
10 changes: 10 additions & 0 deletions Lib/test/test_peg_generator/test_c_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,18 @@ def test_parse(self):
@support.requires_subprocess()
class TestCParser(unittest.TestCase):

_has_run = False

@classmethod
def setUpClass(cls):
if cls._has_run:
# Since gh-104798 (Use setuptools in peg-generator and reenable
# tests), this test case has been producing ref leaks. Initial
# debugging points to bug(s) in setuptools and/or importlib.
# See gh-105063 for more info.
raise unittest.SkipTest("gh-105063: can not rerun because of ref. leaks")
cls._has_run = True

# When running under regtest, a separate tempdir is used
# as the current directory and watched for left-overs.
# Reusing that as the base for temporary directories
Expand Down
0