Skip to content

Commit

Permalink
gh-105063: Disable test_peg_generator.TestCParser bco. ref leaks (#10…
Browse files Browse the repository at this point in the history
…6024)

Since gh-104798 (Use setuptools in peg-generator and reenable
tests), the TestCParser test case has been producing ref leaks.
  • Loading branch information
erlend-aasland committed Jun 23, 2023
1 parent c8c162e commit 41ad4df
Showing 1 changed file with 10 additions and 0 deletions.
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 comments on commit 41ad4df

Please sign in to comment.