]> 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:33 +0000 (18:29 -0700)
committerGitHub <noreply@github.com>
Thu, 13 Sep 2018 01:29:33 +0000 (18:29 -0700)
commit3e3d4a4b55cbef481486aaa68ee255f4928b9c3f
treee7c6f2206fcc56c7f634211929fbbc80b34ca227
parent2184fe5ba48a58cb51be144230622b84b372644c
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]