summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-07-05 11:05:50 (GMT)
committerGitHub <noreply@github.com>2023-07-05 11:05:50 (GMT)
commitb314194c3c05d388892be2a6bf359fec20d9504c (patch)
tree511a7c50d103a6a59b55fa2face99b533667fec9 /Lib
parent53605f285a5e50cd804f3b38aa9e3a71546142b3 (diff)
downloadcpython-b314194c3c05d388892be2a6bf359fec20d9504c.zip
cpython-b314194c3c05d388892be2a6bf359fec20d9504c.tar.gz
cpython-b314194c3c05d388892be2a6bf359fec20d9504c.tar.bz2
[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 41ad4dfc04c201728ce9fa12b1a96922dd15a368) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_peg_generator/test_c_parser.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_peg_generator/test_c_parser.py b/Lib/test/test_peg_generator/test_c_parser.py
index af39fae..f9105a9 100644
--- a/Lib/test/test_peg_generator/test_c_parser.py
+++ b/Lib/test/test_peg_generator/test_c_parser.py
@@ -74,8 +74,18 @@ unittest.main()
@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