summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2020-04-24 16:51:09 +0300
committerGitHub <noreply@github.com>2020-04-24 14:51:09 +0100
commit24ffe705c30e36c82940d75fd1454256634d0b3c (patch)
tree2efffce48d5a72d5d1e522427d31a0ebd88e36c1 /m4
parente6f8abd500751a834b6fff4f107ecbd29f2184fe (diff)
downloadcpython-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 'm4')
0 files changed, 0 insertions, 0 deletions