diff options
author | Gregory P. Smith <greg@krypto.org> | 2018-09-13 00:58:40 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-09-13 00:58:40 (GMT) |
commit | 4ae8ece5cd4c5853b625381db13429f25512108d (patch) | |
tree | b59c5db2bd26ffd2c4ea1ac1c58cac3ae03d6081 /Misc | |
parent | ed709d5699716bf7237856dc20aba321e2dfff6d (diff) | |
download | cpython-4ae8ece5cd4c5853b625381db13429f25512108d.zip cpython-4ae8ece5cd4c5853b625381db13429f25512108d.tar.gz cpython-4ae8ece5cd4c5853b625381db13429f25512108d.tar.bz2 |
bpo-34200: Fix non-determinism of test_pkg (GH-9248)
This causes the tearDown code to only unimport the test modules specifically created as part of each test via the self.mkhier method rather than abusing test.support.modules_setup() and the scary test.support.modules_cleanup() code.
https://bugs.python.org/issue34200
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2018-09-12-17-00-34.bpo-34200.dfxYQK.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2018-09-12-17-00-34.bpo-34200.dfxYQK.rst b/Misc/NEWS.d/next/Tests/2018-09-12-17-00-34.bpo-34200.dfxYQK.rst new file mode 100644 index 0000000..b53339c --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2018-09-12-17-00-34.bpo-34200.dfxYQK.rst @@ -0,0 +1,3 @@ +Fixed non-deterministic flakiness of test_pkg by not using the scary +test.support.module_cleanup() logic to save and restore sys.modules contents +between test cases. |