-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Closed
Labels
OS-freebsdtestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Adding a few tests to test_import.SubinterpImportTests causes a refleak to be detected on FreeBSD:
test_import leaked [498, 498, 498] references, sum=1494
test_import leaked [326, 326, 326] memory blocks, sum=978
As intriguing as this is, at this point I don't think I should spend more time investigating it. Perhaps someone has a quick idea on what to try :)
cc @vstinner as an expert on FreeBSD and refleak hunting.
See PR and buildbot run. The patch I used is:
diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py
index b71a36ec2f7aab..febfb96a53e46c 100644
--- a/Lib/test/test_import/__init__.py
+++ b/Lib/test/test_import/__init__.py
@@ -2467,6 +2467,30 @@ def test_multi_init_extension_per_interpreter_gil_compat(self):
self.check_compatible_here(
modname, filename, strict=False, isolated=False)
+ def test_extra_A(self):
+ return
+
+ def test_extra_B(self):
+ return
+
+ def test_extra_C(self):
+ return
+
+ def test_extra_D(self):
+ return
+
+ def test_extra_E(self):
+ return
+
+ def test_extra_F(self):
+ return
+
+ def test_extra_G(self):
+ return
+
+ def test_extra_H(self):
+ return
+
@unittest.skipIf(_testinternalcapi is None, "requires _testinternalcapi")
def test_python_compat(self):
module = 'threading'Linked PRs
- gh-140657: (bug trigger) Add extra no-op tests to test_import.SubinterpImportTests #140655
- gh-140657: Run test_import single phase init tests in a subprocess #140708
- gh-140657: Don't rerun test_import single phase init test #140712
- [3.14] gh-140657: Don't rerun test_import single phase init test (GH-140712) #140713
- [3.13] gh-140657: Don't rerun test_import single phase init test (GH-140712) #140714
Metadata
Metadata
Assignees
Labels
OS-freebsdtestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error