]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34200: Fix non-determinism of test_pkg (GH-9248)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 13 Sep 2018 01:29:08 +0000 (18:29 -0700)
committerGitHub <noreply@github.com>
Thu, 13 Sep 2018 01:29:08 +0000 (18:29 -0700)
commit90f7d455b7f4bd53d3af11cb951347c9c8230399
tree0c6ac907f2bd34c8d14319802fa21719a2e6131c
parentea2fcd3db65b796ad3eda1619a903cefb1aa9363
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
(cherry picked from commit 4ae8ece5cd4c5853b625381db13429f25512108d)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/test/test_pkg.py
Misc/NEWS.d/next/Tests/2018-09-12-17-00-34.bpo-34200.dfxYQK.rst [new file with mode: 0644]