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

Method setUp

Lib/test/multibytecodec_support.py:309–313  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

307 codectests = []
308
309 def setUp(self):
310 try:
311 self.open_mapping_file().close() # test it to report the error early
312 except (OSError, HTTPException):
313 self.skipTest("Could not retrieve "+self.mapfileurl)
314
315 def open_mapping_file(self):
316 return support.open_urlresource(self.mapfileurl, encoding="utf-8")

Callers

nothing calls this directly

Calls 3

open_mapping_fileMethod · 0.95
skipTestMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected