From 06e6515e36ce0e187b60e3700a1f91b0ea64a1e1 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Thu, 25 Jun 2026 15:58:50 +0200 Subject: [PATCH] [3.15] gh-152168: Don't skip `test_bigmem` if `_testcapi` is missing (GH-152171) (#152198) (cherry picked from commit 6a82832a0bd12ff6154fcfcccc3b7b5644eab0e8) Co-authored-by: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com> --- Lib/test/test_bigmem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_bigmem.py b/Lib/test/test_bigmem.py index 6d0879ad65d..7f53379a952 100644 --- a/Lib/test/test_bigmem.py +++ b/Lib/test/test_bigmem.py @@ -10,7 +10,6 @@ high memory limit to regrtest, with the -M option. from test import support from test.support import bigmemtest, _1G, _2G, _4G, import_helper -_testcapi = import_helper.import_module('_testcapi') import unittest import operator @@ -1264,6 +1263,7 @@ class ImmortalityTest(unittest.TestCase): def test_stickiness(self, size): """Check that immortality is "sticky", so that once an object is immortal it remains so.""" + _testcapi = import_helper.import_module('_testcapi') if size < _2G: # Not enough memory to cause immortality on overflow return