]> granicus.if.org Git - python/commit
bpo-34200: Fix non-determinism of test_pkg (GH-9248)
authorGregory P. Smith <greg@krypto.org>
Thu, 13 Sep 2018 00:58:40 +0000 (17:58 -0700)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 13 Sep 2018 00:58:40 +0000 (17:58 -0700)
commit4ae8ece5cd4c5853b625381db13429f25512108d
treeb59c5db2bd26ffd2c4ea1ac1c58cac3ae03d6081
parented709d5699716bf7237856dc20aba321e2dfff6d
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
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]