except ModuleNotFoundError:
has_c_implementation = False
+support.requires('xpickle')
+
is_windows = sys.platform.startswith('win')
# Map python version to a tuple containing the name of a corresponding valid
if sys.version_info >= (3, 5):
import importlib.util
spec = importlib.util.spec_from_file_location('test.picklecommon', test_mod_path)
+ sys.modules['test'] = type(sys)('test')
test_module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(test_module)
sys.modules['test.picklecommon'] = test_module