• Home
  • Raw
  • Download

Lines Matching defs:self

85     def setUp(self):  argument
90 def tearDown(self): argument
111 def _execute_child(self, *args, **kwargs): argument
117 def test_io_buffered_by_default(self): argument
131 def test_io_unbuffered_works(self): argument
145 def test_call_seq(self): argument
151 def test_call_timeout(self): argument
160 def test_check_call_zero(self): argument
165 def test_check_call_nonzero(self): argument
172 def test_check_output(self): argument
186 def test_check_output_nonzero(self): argument
193 def test_check_output_stderr(self): argument
200 def test_check_output_stdin_arg(self): argument
212 def test_check_output_input_arg(self): argument
220 def test_check_output_input_none(self): argument
228 def test_check_output_input_none_text(self): argument
235 def test_check_output_input_none_universal_newlines(self): argument
242 def test_check_output_input_none_encoding_errors(self): argument
248 def test_check_output_stdout_arg(self): argument
257 def test_check_output_stdin_with_input_arg(self): argument
272 def test_check_output_timeout(self): argument
287 def test_call_kwargs(self): argument
297 def test_invalid_args(self): argument
307 def test_stdin_none(self): argument
316 def test_stdout_none(self): argument
339 def test_stderr_none(self): argument
348 def _assert_python(self, pre_args, **kwargs): argument
356 def test_executable(self): argument
367 def test_bytes_executable(self): argument
373 def test_pathlike_executable(self): argument
379 def test_executable_takes_precedence(self): argument
390 def test_executable_replaces_shell(self): argument
396 def test_bytes_executable_replaces_shell(self): argument
401 def test_pathlike_executable_replaces_shell(self): argument
406 def _normalize_cwd(self, cwd): argument
414 def _split_python_path(self): argument
420 def _assert_cwd(self, expected_cwd, python_arg, **kwargs): argument
439 def test_cwd(self): argument
445 def test_cwd_with_bytes(self): argument
450 def test_cwd_with_pathlike(self): argument
456 def test_cwd_with_relative_arg(self): argument
472 def test_cwd_with_relative_executable(self): argument
490 def test_cwd_with_absolute_arg(self): argument
506 def test_executable_with_cwd(self): argument
516 def test_executable_without_cwd(self): argument
522 def test_stdin_pipe(self): argument
532 def test_stdin_filedes(self): argument
545 def test_stdin_fileobj(self): argument
557 def test_stdout_pipe(self): argument
565 def test_stdout_filedes(self): argument
577 def test_stdout_fileobj(self): argument
588 def test_stderr_pipe(self): argument
596 def test_stderr_filedes(self): argument
608 def test_stderr_fileobj(self): argument
619 def test_stderr_redirect_with_no_stdout_redirect(self): argument
640 def test_stdout_stderr_pipe(self): argument
652 def test_stdout_stderr_file(self): argument
667 def test_stdout_filedes_of_stdout(self): argument
686 def test_stdout_devnull(self): argument
694 def test_stderr_devnull(self): argument
703 def test_stdin_devnull(self): argument
713 def test_pipesizes(self): argument
750 def test_pipesize_default(self): argument
782 def test_env(self): argument
794 def test_win32_duplicate_envs(self): argument
815 def test_empty_env(self): argument
842 def test_one_environment_variable(self): argument
857 def test_invalid_cmd(self): argument
867 def test_invalid_env(self): argument
898 def test_win32_invalid_env(self): argument
910 def test_communicate_stdin(self): argument
918 def test_communicate_stdout(self): argument
926 def test_communicate_stderr(self): argument
934 def test_communicate(self): argument
949 def test_communicate_timeout(self): argument
968 def test_communicate_timeout_large_output(self): argument
985 def test_communicate_pipe_fd_leak(self): argument
1007 def test_communicate_returns(self): argument
1015 def test_communicate_pipe_buf(self): argument
1038 def test_writes_before_communicate(self): argument
1054 def test_universal_newlines_and_text(self): argument
1093 def test_universal_newlines_communicate(self): argument
1118 def test_universal_newlines_communicate_stdin(self): argument
1132 def test_universal_newlines_communicate_input_none(self): argument
1144 def test_universal_newlines_communicate_stdin_stdout_stderr(self): argument
1172 def test_universal_newlines_communicate_encodings(self): argument
1194 def test_communicate_errors(self): argument
1215 def test_no_leaking(self): argument
1254 def test_list2cmdline(self): argument
1272 def test_poll(self): argument
1283 def test_wait(self): argument
1289 def test_wait_timeout(self): argument
1297 def test_invalid_bufsize(self): argument
1303 def test_bufsize_is_none(self): argument
1311 def _test_bufsize_equal_one(self, line, expected, universal_newlines): argument
1333 def test_bufsize_equal_one_text_mode(self): argument
1339 def test_bufsize_equal_one_binary_mode(self): argument
1347 def test_leaking_fds_on_error(self): argument
1359 def test_nonexisting_with_pipes(self): argument
1400 def test_double_close_on_error(self): argument
1429 def test_threadsafe_wait(self): argument
1481 def test_issue8780(self): argument
1492 def test_handles_closed_on_exception(self): argument
1512 def test_communicate_epipe(self): argument
1523 def test_repr(self): argument
1540 def test_communicate_epipe_only_stdin(self): argument
1554 def test_communicate_eintr(self): argument
1575 def test_failed_child_execute_fd_leak(self): argument
1592 def test_file_not_found_includes_filename(self): argument
1598 def test_file_not_found_with_bad_cwd(self): argument
1603 def test_class_getitems(self): argument
1609 def test_wait_negative_timeout(self): argument
1625 def run_python(self, code, **kwargs): argument
1630 def test_returncode(self): argument
1637 def test_check(self): argument
1642 def test_check_zero(self): argument
1647 def test_timeout(self): argument
1655 def test_capture_stdout(self): argument
1660 def test_capture_stderr(self): argument
1665 def test_check_output_stdin_arg(self): argument
1676 def test_check_output_input_arg(self): argument
1683 def test_check_output_stdin_with_input_arg(self): argument
1697 def test_check_output_timeout(self): argument
1711 def test_run_kwargs(self): argument
1719 def test_run_with_pathlike_path(self): argument
1733 def test_run_with_bytes_path_and_arguments(self): argument
1740 def test_run_with_pathlike_path_and_arguments(self): argument
1748 def test_run_with_an_empty_env(self): argument
1755 def test_capture_output(self): argument
1763 def test_stdout_stdout(self): argument
1770 def test_stdout_with_capture_output_arg(self): argument
1782 def test_stderr_with_capture_output_arg(self): argument
1799 def test_run_with_shell_timeout_and_capture_output(self): argument
1814 def test_encoding_warning(self): argument
1843 def setUp(self): argument
1847 def _get_chdir_exception(self): argument
1860 def test_exception_cwd(self): argument
1875 def test_exception_bad_executable(self): argument
1890 def test_exception_bad_args_0(self): argument
1912 def __del__(self): argument
1916 def test_exception_errpipe_normal(self, fork_exec): argument
1933 def test_exception_errpipe_bad_data(self, fork_exec): argument
1956 def test_restore_signals(self): argument
1978 def test_start_new_session(self): argument
1996 def test_process_group_0(self): argument
2013 def test_user(self): argument
2065 def test_user_error(self): argument
2070 def test_group(self): argument
2112 def test_group_error(self): argument
2117 def test_extra_groups(self): argument
2123 def test_extra_groups_empty_list(self): argument
2126 def _test_extra_groups_impl(self, *, gid, group_list): argument
2158 def test_extra_groups_invalid_gid_t_values(self): argument
2169 def test_umask(self): argument
2189 def test_run_abort(self): argument
2197 def test_CalledProcessError_str_signal(self): argument
2208 def test_CalledProcessError_str_unknown_signal(self): argument
2213 def test_CalledProcessError_str_non_zero(self): argument
2218 def test_preexec(self): argument
2229 def test_preexec_exception(self): argument
2247 def __init__(self, testcase, *args, **kwargs): argument
2251 def _execute_child(self, *args, **kwargs): argument
2271 def test_preexec_errpipe_does_not_double_close_pipes(self): argument
2284 def test_preexec_gc_module_failure(self): argument
2307 def test_preexec_fork_failure(self): argument
2327 def test_args_string(self): argument
2341 def test_invalid_args(self): argument
2352 def test_shell_sequence(self): argument
2362 def test_shell_string(self): argument
2372 def test_call_string(self): argument
2385 def test_specific_shell(self): argument
2405 def _kill_process(self, method, *args): argument
2432 def _kill_dead_process(self, method, *args): argument
2453 def test_send_signal(self): argument
2459 def test_kill(self): argument
2465 def test_terminate(self): argument
2471 def test_send_signal_dead(self): argument
2475 def test_kill_dead(self): argument
2479 def test_terminate_dead(self): argument
2483 def _save_fds(self, save_fds): argument
2491 def _restore_fds(self, fds): argument
2496 def check_close_std_fds(self, fds): argument
2521 def test_close_fd_0(self): argument
2524 def test_close_fd_1(self): argument
2527 def test_close_fd_2(self): argument
2530 def test_close_fds_0_1(self): argument
2533 def test_close_fds_0_2(self): argument
2536 def test_close_fds_1_2(self): argument
2539 def test_close_fds_0_1_2(self): argument
2544 def test_small_errpipe_write_fd(self): argument
2565 def test_remapping_std_fds(self): argument
2610 def check_swap_fds(self, stdin_no, stdout_no, stderr_no): argument
2658 def test_swap_fds(self): argument
2666 def _check_swap_std_fds_with_one_closed(self, from_fds, to_fds): argument
2710 def test_swap_std_fds_with_one_closed(self): argument
2715 def test_surrogates_error_message(self): argument
2734 def test_undecodable_env(self): argument
2763 def test_bytes_program(self): argument
2790 def test_pipe_cloexec(self): argument
2813 def test_pipe_cloexec_real_tools(self): argument
2854 def test_close_fds(self): argument
2905 def test_close_fds_when_max_fd_is_lowered(self): argument
2986 def test_pass_fds(self): argument
3019 def test_pass_fds_inheritable(self): argument
3049 def test_pass_fds_redirected(self): argument
3075 def test_stdout_stdin_are_single_inout_fd(self): argument
3081 def test_stdout_stderr_are_single_inout_fd(self): argument
3087 def test_stderr_stdin_are_single_inout_fd(self): argument
3093 def test_wait_when_sigchild_ignored(self): argument
3104 def test_select_unbuffered(self): argument
3121 def test_zombie_fast_process_del(self): argument
3145 def test_leak_fast_process_del_killed(self): argument
3188 def test_close_fds_after_preexec(self): argument
3206 def test_fork_exec(self): argument
3246 def test_fork_exec_sorted_fd_sanity_check(self): argument
3251 def __init__(self, value): argument
3253 def __int__(self): argument
3287 def test_communicate_BrokenPipeError_stdin_close(self): argument
3296 def test_communicate_BrokenPipeError_stdin_write(self): argument
3306 def test_communicate_BrokenPipeError_stdin_flush(self): argument
3321 def test_communicate_BrokenPipeError_stdin_close_with_timeout(self): argument
3336 def test_stopped(self): argument
3350 def test_send_signal_race(self): argument
3372 def test_send_signal_race2(self): argument
3386 def test_communicate_repeated_call_after_stdout_close(self): argument
3397 def test_preexec_at_exit(self): argument
3420 def test__use_vfork(self, mock_fork_exec): argument
3439 def test_vfork_used_when_expected(self): argument
3508 def test_startupinfo(self): argument
3523 def test_startupinfo_keywords(self): argument
3539 def test_startupinfo_copy(self): argument
3566 def test_creationflags(self): argument
3574 def test_invalid_args(self): argument
3582 def test_issue31471(self): argument
3590 def test_close_fds(self): argument
3597 def test_close_fds_with_stdio(self): argument
3647 def test_empty_attribute_list(self): argument
3653 def test_empty_handle_list(self): argument
3659 def test_shell_sequence(self): argument
3669 def test_shell_string(self): argument
3679 def test_shell_encodings(self): argument
3691 def test_call_string(self): argument
3697 def _kill_process(self, method, *args): argument
3718 def _kill_dead_process(self, method, *args): argument
3741 def test_send_signal(self): argument
3744 def test_kill(self): argument
3747 def test_terminate(self): argument
3750 def test_send_signal_dead(self): argument
3753 def test_kill_dead(self): argument
3756 def test_terminate_dead(self): argument
3765 def __init__(self, *args, **kwargs): argument
3770 def _test_keyboardinterrupt_no_kill(self, popener, mock__communicate, argument
3813 def test_call_keyboardinterrupt_no_kill(self): argument
3816 def test_run_keyboardinterrupt_no_kill(self): argument
3819 def test_context_manager_keyboardinterrupt_no_kill(self): argument
3825 def test_getoutput(self): argument
3844 def test__all__(self): argument
3862 def setUp(self): argument
3867 def tearDown(self): argument
3875 def setUp(self): argument
3884 def tearDown(self): argument
3888 def with_spaces(self, *args, **kwargs): argument
3897 def test_shell_string_with_spaces(self): argument
3902 def test_shell_sequence_with_spaces(self): argument
3906 def test_noshell_string_with_spaces(self): argument
3911 def test_noshell_sequence_with_spaces(self): argument
3918 def test_pipe(self): argument
3931 def test_returncode(self): argument
3938 def test_communicate_stdin(self): argument
3946 def test_invalid_args(self): argument
3953 def test_broken_pipe_cleanup(self): argument