MCPcopy Index your code
hub / github.com/python/cpython / testUnencodable

Method testUnencodable

Lib/test/test_zipimport.py:862–867  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

860 @unittest.skipIf(os_helper.TESTFN_UNENCODABLE is None,
861 "need an unencodable filename")
862 def testUnencodable(self):
863 filename = os_helper.TESTFN_UNENCODABLE + ".zip"
864 self.makeZip({TESTMOD + ".py": test_src}, filename)
865 spec = zipimport.zipimporter(filename).find_spec(TESTMOD)
866 mod = importlib.util.module_from_spec(spec)
867 spec.loader.exec_module(mod)
868
869 def testBytesPath(self):
870 filename = os_helper.TESTFN + ".zip"

Callers

nothing calls this directly

Calls 3

makeZipMethod · 0.95
find_specMethod · 0.45
exec_moduleMethod · 0.45

Tested by

no test coverage detected