Commit 24ffe70
authored
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.
1 parent e6f8abd commit 24ffe70
File tree
3 files changed
+146
-83
lines changed- Lib/test/test_peg_generator
- Tools/peg_generator/pegen
3 files changed
+146
-83
lines changed
0 commit comments