Skip to content

Commit 06e6515

Browse files
[3.15] gh-152168: Don't skip test_bigmem if _testcapi is missing (GH-152171) (#152198)
(cherry picked from commit 6a82832) Co-authored-by: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com>
1 parent 1926cf3 commit 06e6515

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_bigmem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
from test import support
1212
from test.support import bigmemtest, _1G, _2G, _4G, import_helper
13-
_testcapi = import_helper.import_module('_testcapi')
1413

1514
import unittest
1615
import operator
@@ -1264,6 +1263,7 @@ class ImmortalityTest(unittest.TestCase):
12641263
def test_stickiness(self, size):
12651264
"""Check that immortality is "sticky", so that
12661265
once an object is immortal it remains so."""
1266+
_testcapi = import_helper.import_module('_testcapi')
12671267
if size < _2G:
12681268
# Not enough memory to cause immortality on overflow
12691269
return

0 commit comments

Comments
 (0)