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 4fb6a31 commit b866a1cCopy full SHA for b866a1c
2 files changed
Lib/test/test_xpickle.py
@@ -17,6 +17,8 @@
17
except ModuleNotFoundError:
18
has_c_implementation = False
19
20
+support.requires('xpickle')
21
+
22
is_windows = sys.platform.startswith('win')
23
24
# Map python version to a tuple containing the name of a corresponding valid
Lib/test/xpickle_worker.py
@@ -12,6 +12,7 @@
12
if sys.version_info >= (3, 5):
13
import importlib.util
14
spec = importlib.util.spec_from_file_location('test.picklecommon', test_mod_path)
15
+ sys.modules['test'] = type(sys)('test')
16
test_module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(test_module)
sys.modules['test.picklecommon'] = test_module
0 commit comments