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 10417dd commit 0473fb2Copy full SHA for 0473fb2
1 file changed
Lib/test/libregrtest/runtest.py
@@ -11,7 +11,6 @@
11
import unittest
12
13
from test import support
14
-from test.support import import_helper
15
from test.support import os_helper
16
from test.libregrtest.utils import clear_caches
17
from test.libregrtest.save_env import saved_test_environment
@@ -222,7 +221,10 @@ def _runtest_inner2(ns, test_name):
222
221
abstest = get_abs_module(ns, test_name)
223
224
# remove the module from sys.module to reload it if it was already imported
225
- import_helper.unload(abstest)
+ try:
+ del sys.modules[abstest]
226
+ except KeyError:
227
+ pass
228
229
the_module = importlib.import_module(abstest)
230
0 commit comments