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

Method test_set_executable

Lib/test/_test_multiprocessing.py:327–341  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

325 self.assertEqual(current.exitcode, None)
326
327 def test_set_executable(self):
328 if self.TYPE == 'threads':
329 self.skipTest(f'test not appropriate for {self.TYPE}')
330 paths = [
331 sys.executable, # str
332 os.fsencode(sys.executable), # bytes
333 os_helper.FakePath(sys.executable), # os.PathLike
334 os_helper.FakePath(os.fsencode(sys.executable)), # os.PathLike bytes
335 ]
336 for path in paths:
337 self.set_executable(path)
338 p = self.Process()
339 p.start()
340 p.join()
341 self.assertEqual(p.exitcode, 0)
342
343 @support.requires_resource('cpu')
344 def test_args_argument(self):

Callers

nothing calls this directly

Calls 7

skipTestMethod · 0.80
fsencodeMethod · 0.80
set_executableMethod · 0.80
ProcessMethod · 0.45
startMethod · 0.45
joinMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected