diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2020-04-24 16:51:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-24 14:51:09 +0100 |
commit | 24ffe705c30e36c82940d75fd1454256634d0b3c (patch) | |
tree | 2efffce48d5a72d5d1e522427d31a0ebd88e36c1 /Python/condvar.h | |
parent | e6f8abd500751a834b6fff4f107ecbd29f2184fe (diff) | |
download | cpython-git-24ffe705c30e36c82940d75fd1454256634d0b3c.tar.gz |
bpo-40334: Rewrite test_c_parser to avoid memory leaks (GH-19694)
Previously every test was building an extension module and
loading it into sys.modules. The tearDown function was thus
not able to clean up correctly, resulting in memory leaks.
With this commit, every test function now builds the extension
module and runs the actual test code in a new process
(using assert_python_ok), so that sys.modules stays intact
and no memory gets leaked.
Diffstat (limited to 'Python/condvar.h')
0 files changed, 0 insertions, 0 deletions