7182e653fb
Fix test_sys.test_getallocatedblocks() when tracemalloc is enabled.
If the name of Python memory allocators cannot get read, consider
that pymalloc is disabled.
Fix the following error:
./python -X tracemalloc -m test test_sys -v -m test_getallocatedblocks
ERROR: test_getallocatedblocks (test.test_sys.SysModuleTest)
------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_sys.py", line 770, in test_getallocatedblocks
alloc_name = _testcapi.pymem_getallocatorsname()
RuntimeError: cannot get allocators name
(cherry picked from commit
|
||
---|---|---|
.. | ||
next | ||
3.5.0.rst | ||
3.5.0a1.rst | ||
3.5.0a2.rst | ||
3.5.0a3.rst | ||
3.5.0a4.rst | ||
3.5.0b1.rst | ||
3.5.0b2.rst | ||
3.5.0b3.rst | ||
3.5.0b4.rst | ||
3.5.0rc1.rst | ||
3.5.0rc2.rst | ||
3.5.0rc3.rst | ||
3.5.0rc4.rst | ||
3.5.1.rst | ||
3.5.1rc1.rst | ||
3.5.2.rst | ||
3.5.2rc1.rst | ||
3.5.3.rst | ||
3.5.3rc1.rst | ||
3.5.4.rst | ||
3.5.4rc1.rst | ||
3.5.5.rst | ||
3.5.5rc1.rst | ||
3.6.0.rst | ||
3.6.0a1.rst | ||
3.6.0a2.rst | ||
3.6.0a3.rst | ||
3.6.0a4.rst | ||
3.6.0b1.rst | ||
3.6.0b2.rst | ||
3.6.0b3.rst | ||
3.6.0b4.rst | ||
3.6.0rc1.rst | ||
3.6.0rc2.rst | ||
3.6.1.rst | ||
3.6.1rc1.rst | ||
3.6.2.rst | ||
3.6.2rc1.rst | ||
3.6.2rc2.rst | ||
3.6.3.rst | ||
3.6.3rc1.rst | ||
3.6.4.rst | ||
3.6.4rc1.rst | ||
3.6.5.rst | ||
3.6.5rc1.rst | ||
3.6.6.rst | ||
3.6.6rc1.rst | ||
3.7.0.rst | ||
3.7.0a1.rst | ||
3.7.0a2.rst | ||
3.7.0a3.rst | ||
3.7.0a4.rst | ||
3.7.0b1.rst | ||
3.7.0b2.rst | ||
3.7.0b3.rst | ||
3.7.0b4.rst | ||
3.7.0b5.rst | ||
3.7.0rc1.rst | ||
3.7.1.rst | ||
3.7.1rc1.rst | ||
3.7.1rc2.rst | ||
3.7.2.rst | ||
3.7.2rc1.rst | ||
3.7.3.rst | ||
3.7.3rc1.rst |