Bug report
Bug description:
This line:
| _testcapi=import_helper.import_module('_testcapi') |
causes the entire test module to be skipped if _testcapi isn't available but, the only test requiring it is:
| classImmortalityTest(unittest.TestCase): |
| |
| @bigmemtest(size=_2G, memuse=pointer_size*9/8) |
| deftest_stickiness(self, size): |
| """Check that immortality is "sticky", so that |
| once an object is immortal it remains so.""" |
| ifsize<_2G: |
| # Not enough memory to cause immortality on overflow |
| return |
| o1=o2=o3=o4=o5=o6=o7=o8=object() |
| l= [o1] * (size-20) |
| self.assertFalse(_testcapi.is_immortal(o1)) |
| for_inrange(30): |
| l.append(l[0]) |
| self.assertTrue(_testcapi.is_immortal(o1)) |
| delo2, o3, o4, o5, o6, o7, o8 |
| self.assertTrue(_testcapi.is_immortal(o1)) |
| dell |
| self.assertTrue(_testcapi.is_immortal(o1)) |
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Bug report
Bug description:
This line:
cpython/Lib/test/test_bigmem.py
Line 13 in a00464b
causes the entire test module to be skipped if
_testcapiisn't available but, the only test requiring it is:cpython/Lib/test/test_bigmem.py
Lines 1261 to 1279 in a00464b
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
test_bigmemif_testcapiis missing #152171test_bigmemif_testcapiis missing (GH-152171) #152199