Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79d1b1c commit 9bcfacdCopy full SHA for 9bcfacd
1 file changed
Lib/packaging/tests/test_dist.py
@@ -13,6 +13,7 @@
13
from packaging.tests import TESTFN, captured_stdout
14
from packaging.tests import support, unittest
15
from packaging.tests.support import create_distribution
16
+from test.support import unload
17
18
19
class test_dist(Command):
@@ -224,6 +225,7 @@ def log_post_call(cmd):
224
225
# prepare the call recorders
226
sys.path.append(temp_home)
227
self.addCleanup(sys.path.remove, temp_home)
228
+ self.addCleanup(unload, module_name)
229
record = __import__(module_name).record
230
231
old_run = cmd.run
0 commit comments