• Home
  • Raw
  • Download

Lines Matching refs:expect_call

62         subcommand.os.path.abspath.expect_call('dir').and_return('/foo/dir')
63 subcommand.os.path.exists.expect_call('/foo/dir').and_return(False)
64 subcommand.os.mkdir.expect_call('/foo/dir')
66 (subcommand.os.path.exists.expect_call('/foo/dir/debug')
68 subcommand.os.mkdir.expect_call('/foo/dir/debug')
79 subcommand.os.fork.expect_call().and_return(1000)
114 subcommand.os.pipe.expect_call().and_return((10, 20))
115 subcommand.os.fork.expect_call().and_return(0)
116 subcommand.os.close.expect_call(10)
117 fork_hook.expect_call(cmd)
118 func.expect_call(1, 2).and_return(True)
119 subcommand.cPickle.dumps.expect_call(True,
121 subcommand.os.write.expect_call(20, 'True')
122 subcommand.os.close.expect_call(20)
123 join_hook.expect_call(cmd)
124 subcommand.os._exit.expect_call(0)
138 subcommand.os.pipe.expect_call().and_return((10, 20))
139 subcommand.os.fork.expect_call().and_return(0)
140 subcommand.os.close.expect_call(10)
141 func.expect_call(1, 2).and_raises(error)
142 subcommand.logging.exception.expect_call('function failed')
143 subcommand.cPickle.dumps.expect_call(error,
145 subcommand.os.write.expect_call(20, 'error')
146 subcommand.os.close.expect_call(20)
147 subcommand.os._exit.expect_call(1)
162 (subcommand.os.waitpid.expect_call(1000, subcommand.os.WNOHANG)
171 (subcommand.os.waitpid.expect_call(1000, subcommand.os.WNOHANG)
181 (subcommand.os.waitpid.expect_call(1000, subcommand.os.WNOHANG)
183 cmd._handle_exitstatus.expect_call(10).and_raises(Exception('fail'))
192 (subcommand.os.waitpid.expect_call(1000, 0)
203 (subcommand.os.waitpid.expect_call(1000, 0)
206 cmd._handle_exitstatus.expect_call(10).and_raises(Exception('fail'))
272 task.fork_start.expect_call()
281 task.fork_waitfor.expect_call(timeout=None).and_return(0)
282 (subcommand.cPickle.load.expect_call(task.result_pickle)
284 task.result_pickle.close.expect_call()
294 task.fork_waitfor.expect_call(timeout=None).and_return(1)
295 (subcommand.cPickle.load.expect_call(task.result_pickle)
297 task.result_pickle.close.expect_call()
310 subcommand.time.time.expect_call().and_return(1)
313 subcommand.time.time.expect_call().and_return(1)
314 task.fork_waitfor.expect_call(timeout=timeout).and_return(None)
315 (subcommand.cPickle.load.expect_call(task.result_pickle)
317 task.result_pickle.close.expect_call()
327 tasklist[0].fork_waitfor.expect_call(timeout=None).and_return(0)
328 (subcommand.cPickle.load.expect_call(tasklist[0].result_pickle)
330 tasklist[0].result_pickle.close.expect_call()
333 tasklist[1].fork_waitfor.expect_call(timeout=None).and_return(1)
334 (subcommand.cPickle.load.expect_call(tasklist[1].result_pickle)
336 tasklist[1].result_pickle.close.expect_call()
358 func.expect_call(3)
368 func.expect_call(3).and_raises(error)
378 func.expect_call(3).and_return(result)
390 subcommand.subcommand.expect_call(
392 subcommand.parallel.expect_call(args, None, return_results=False)
402 subcommand.subcommand.expect_call(
404 subcommand.parallel.expect_call(args, None, return_results=False)
415 subcommand.subcommand.expect_call(
417 subcommand.parallel.expect_call(args, None, return_results=False)