[issue40987] Add tests to test_interpreters to import C extension modules converted to PEP 489 multiphase initialization

Dong-hee Na report at bugs.python.org
Wed Jun 17 04:51:40 EDT 2020


Dong-hee Na <donghee.na92 at gmail.com> added the comment:

Hmm today I personally wrote the tests for it.

Two goals should be achived
1. import doesn't crash
2. Memory leak should be detected.

Running "import xxx" in _testcapi.run_in_subinterp()
only detect that the import doesn't crash

But the memory leak was not detected with a leaky module.
So I'd like to suggest to write import tests on their module test
by using _testcapi.run_in_subinterp() for each case.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40987>
_______________________________________


More information about the Python-bugs-list mailing list