diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-17 13:52:56 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-17 13:52:56 +0200 |
commit | 723993983a8227d7f068b072657caa2b75d4413c (patch) | |
tree | 3a1c02fbce7ffd6e3e572157f5f8e01ad280750f /Python/Python-ast.c | |
parent | 0f270b2c37efd2c9600d9f8648918d9b3479dd94 (diff) | |
download | cpython-git-723993983a8227d7f068b072657caa2b75d4413c.tar.gz |
Issue #12333: run tests on the new module in a subprocess
It is not possible to unload a module written in C, so use a subprocess to run
the tests on the module compiled by test_build_ext(). Using a subprocess, we
don't have to unload the module, save/restore sys.path, and the test can be run
more than once.
This commit fixes also an access error on rmtree() on Windows: because the
module was not really unloaded, it was not possible to remove the temporary
directory (it is not possible to remove a directory on Windows if it still
contains an open file).
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions