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 3ea9a98 commit 4d53198Copy full SHA for 4d53198
livetest.py
@@ -6,7 +6,8 @@
6
# Please see http://en.wikipedia.org/wiki/BSD_licenses
7
8
import copy
9
-import imp
+import importlib.machinery
10
+import importlib.util
11
import os
12
import random
13
import re
@@ -1186,7 +1187,8 @@ def main():
1186
1187
namespace = probe_host(host_config)
1188
host_config.namespace = namespace
1189
- live_test_mod = imp.new_module("livetests")
1190
+ spec = importlib.machinery.ModuleSpec("livetests", None)
1191
+ live_test_mod = importlib.util.module_from_spec(spec)
1192
sys.modules["livetests"] = live_test_mod
1193
1194
def add_test_class(klass, name=None):
0 commit comments