commit | 24ffe705c30e36c82940d75fd1454256634d0b3c | [log] [tgz] |
---|---|---|
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | Fri Apr 24 16:51:09 2020 +0300 |
committer | GitHub <noreply@github.com> | Fri Apr 24 14:51:09 2020 +0100 |
tree | 2efffce48d5a72d5d1e522427d31a0ebd88e36c1 | |
parent | e6f8abd500751a834b6fff4f107ecbd29f2184fe [diff] |
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.