MCPcopy Index your code
hub / github.com/RustPython/RustPython / _fixture_on_path

Method _fixture_on_path

Lib/test/test_importlib/fixtures.py:357–362  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

355 root = 'test.test_importlib.data'
356
357 def _fixture_on_path(self, filename):
358 pkg_file = resources.files(self.root).joinpath(filename)
359 file = self.resources.enter_context(resources.as_file(pkg_file))
360 assert file.name.startswith('example'), file.name
361 sys.path.insert(0, str(file))
362 self.resources.callback(sys.path.pop, 0)
363
364 def setUp(self):
365 # Add self.zip_name to the front of sys.path.

Callers 4

setUpMethod · 0.45
setUpMethod · 0.45

Calls 7

strFunction · 0.85
enter_contextMethod · 0.80
joinpathMethod · 0.45
filesMethod · 0.45
startswithMethod · 0.45
insertMethod · 0.45
callbackMethod · 0.45

Tested by 4

setUpMethod · 0.36
setUpMethod · 0.36