>>> py3-pexpect: Building main/py3-pexpect 4.9-r1 (using abuild 3.15.0-r0) started Tue, 12 Aug 2025 20:52:48 +0000 >>> py3-pexpect: Validating /home/udu/aports/main/py3-pexpect/APKBUILD... >>> py3-pexpect: Analyzing dependencies... >>> py3-pexpect: Installing for build: build-base python3 py3-ptyprocess py3-gpep517 py3-setuptools py3-wheel py3-pytest bash coreutils (1/28) Installing py3-ptyprocess (0.7.0-r6) (2/28) Installing py3-ptyprocess-pyc (0.7.0-r6) (3/28) Installing py3-installer (0.7.0-r2) (4/28) Installing py3-installer-pyc (0.7.0-r2) (5/28) Installing py3-gpep517 (19-r0) (6/28) Installing py3-gpep517-pyc (19-r0) (7/28) Installing py3-setuptools (80.9.0-r0) (8/28) Installing py3-setuptools-pyc (80.9.0-r0) (9/28) Installing py3-wheel (0.46.1-r0) (10/28) Installing py3-wheel-pyc (0.46.1-r0) (11/28) Installing py3-iniconfig (2.1.0-r0) (12/28) Installing py3-iniconfig-pyc (2.1.0-r0) (13/28) Installing py3-pluggy (1.6.0-r0) (14/28) Installing py3-pluggy-pyc (1.6.0-r0) (15/28) Installing py3-py (1.11.0-r4) (16/28) Installing py3-py-pyc (1.11.0-r4) (17/28) Installing py3-pygments (2.19.2-r0) (18/28) Installing py3-pygments-pyc (2.19.2-r0) (19/28) Installing py3-pytest (8.4.1-r0) (20/28) Installing py3-pytest-pyc (8.4.1-r0) (21/28) Installing coreutils-env (9.7-r1) (22/28) Installing coreutils-fmt (9.7-r1) (23/28) Installing coreutils-sha512sum (9.7-r1) (24/28) Installing libattr (2.5.2-r2) (25/28) Installing skalibs-libs (2.14.4.0-r0) (26/28) Installing utmps-libs (0.1.3.1-r0) (27/28) Installing coreutils (9.7-r1) (28/28) Installing .makedepends-py3-pexpect (20250812.205249) Executing busybox-1.37.0-r19.trigger OK: 965 MiB in 347 packages >>> py3-pexpect: Cleaning up srcdir >>> py3-pexpect: Cleaning up pkgdir >>> py3-pexpect: Cleaning up tmpdir >>> py3-pexpect: Fetching py3-pexpect-4.9.tar.gz::https://github.com/pexpect/pexpect/archive/4.9.tar.gz >>> py3-pexpect: Fetching py3-pexpect-4.9.tar.gz::https://github.com/pexpect/pexpect/archive/4.9.tar.gz >>> py3-pexpect: Checking sha512sums... py3-pexpect-4.9.tar.gz: OK >>> py3-pexpect: Unpacking /var/cache/distfiles/py3-pexpect-4.9.tar.gz... 2025-08-12 20:52:49,395 gpep517 INFO Building wheel via backend setuptools.build_meta:__legacy__ /usr/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: ISC License (ISCL) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() 2025-08-12 20:52:49,406 root INFO running bdist_wheel /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:135: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated !! ******************************************************************************** With Python 2.7 end-of-life, support for building universal wheels (i.e., wheels that support both Python 2 and Python 3) is being obviated. Please discontinue using this option, or if you still need it, file an issue with pypa/setuptools describing your use case. By 2025-Aug-30, you need to update your project and remove deprecated calls or your builds will no longer be supported. ******************************************************************************** !! self.finalize_options() 2025-08-12 20:52:49,414 root INFO running build 2025-08-12 20:52:49,414 root INFO running build_py 2025-08-12 20:52:49,416 root INFO creating build/lib/pexpect 2025-08-12 20:52:49,416 root INFO copying pexpect/replwrap.py -> build/lib/pexpect 2025-08-12 20:52:49,416 root INFO copying pexpect/fdpexpect.py -> build/lib/pexpect 2025-08-12 20:52:49,416 root INFO copying pexpect/run.py -> build/lib/pexpect 2025-08-12 20:52:49,416 root INFO copying pexpect/pty_spawn.py -> build/lib/pexpect 2025-08-12 20:52:49,417 root INFO copying pexpect/_async_pre_await.py -> build/lib/pexpect 2025-08-12 20:52:49,417 root INFO copying pexpect/_async.py -> build/lib/pexpect 2025-08-12 20:52:49,417 root INFO copying pexpect/_async_w_await.py -> build/lib/pexpect 2025-08-12 20:52:49,417 root INFO copying pexpect/utils.py -> build/lib/pexpect 2025-08-12 20:52:49,417 root INFO copying pexpect/ANSI.py -> build/lib/pexpect 2025-08-12 20:52:49,417 root INFO copying pexpect/exceptions.py -> build/lib/pexpect 2025-08-12 20:52:49,417 root INFO copying pexpect/pxssh.py -> build/lib/pexpect 2025-08-12 20:52:49,417 root INFO copying pexpect/FSM.py -> build/lib/pexpect 2025-08-12 20:52:49,417 root INFO copying pexpect/expect.py -> build/lib/pexpect 2025-08-12 20:52:49,417 root INFO copying pexpect/__init__.py -> build/lib/pexpect 2025-08-12 20:52:49,417 root INFO copying pexpect/popen_spawn.py -> build/lib/pexpect 2025-08-12 20:52:49,417 root INFO copying pexpect/screen.py -> build/lib/pexpect 2025-08-12 20:52:49,418 root INFO copying pexpect/socket_pexpect.py -> build/lib/pexpect 2025-08-12 20:52:49,418 root INFO copying pexpect/spawnbase.py -> build/lib/pexpect 2025-08-12 20:52:49,418 root INFO copying pexpect/bashrc.sh -> build/lib/pexpect 2025-08-12 20:52:49,421 root INFO installing to build/bdist.linux-x86_64/wheel 2025-08-12 20:52:49,421 root INFO running install 2025-08-12 20:52:49,426 root INFO running install_lib 2025-08-12 20:52:49,427 root INFO creating build/bdist.linux-x86_64/wheel 2025-08-12 20:52:49,427 root INFO creating build/bdist.linux-x86_64/wheel/pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/replwrap.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/fdpexpect.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/run.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/pty_spawn.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/_async_pre_await.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/_async.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/_async_w_await.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/bashrc.sh -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/utils.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/ANSI.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/exceptions.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/pxssh.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/FSM.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/expect.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/__init__.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/popen_spawn.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/screen.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/socket_pexpect.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,428 root INFO copying build/lib/pexpect/spawnbase.py -> build/bdist.linux-x86_64/wheel/./pexpect 2025-08-12 20:52:49,429 root INFO running install_egg_info 2025-08-12 20:52:49,430 root INFO running egg_info 2025-08-12 20:52:49,431 root INFO creating pexpect.egg-info 2025-08-12 20:52:49,431 root INFO writing pexpect.egg-info/PKG-INFO 2025-08-12 20:52:49,432 root INFO writing dependency_links to pexpect.egg-info/dependency_links.txt 2025-08-12 20:52:49,432 root INFO writing requirements to pexpect.egg-info/requires.txt 2025-08-12 20:52:49,432 root INFO writing top-level names to pexpect.egg-info/top_level.txt 2025-08-12 20:52:49,432 root INFO writing manifest file 'pexpect.egg-info/SOURCES.txt' 2025-08-12 20:52:49,434 root INFO reading manifest file 'pexpect.egg-info/SOURCES.txt' 2025-08-12 20:52:49,434 root INFO reading manifest template 'MANIFEST.in' 2025-08-12 20:52:49,434 root WARNING no previously-included directories found matching 'doc/_build' 2025-08-12 20:52:49,435 root WARNING warning: no previously-included files matching '__pycache__' found anywhere in distribution 2025-08-12 20:52:49,435 root WARNING warning: no previously-included files matching '*.pyc' found anywhere in distribution 2025-08-12 20:52:49,436 root WARNING warning: no previously-included files matching '*~' found anywhere in distribution 2025-08-12 20:52:49,436 root INFO adding license file 'LICENSE' 2025-08-12 20:52:49,437 root INFO writing manifest file 'pexpect.egg-info/SOURCES.txt' 2025-08-12 20:52:49,437 root INFO Copying pexpect.egg-info to build/bdist.linux-x86_64/wheel/./pexpect-4.9.0-py3.12.egg-info 2025-08-12 20:52:49,437 root INFO running install_scripts 2025-08-12 20:52:49,437 root INFO creating build/bdist.linux-x86_64/wheel/pexpect-4.9.0.dist-info/WHEEL 2025-08-12 20:52:49,438 wheel INFO creating '/home/udu/aports/main/py3-pexpect/src/pexpect-4.9/.dist/.tmp-hqun7meo/pexpect-4.9.0-py2.py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it 2025-08-12 20:52:49,438 wheel INFO adding 'pexpect/ANSI.py' 2025-08-12 20:52:49,438 wheel INFO adding 'pexpect/FSM.py' 2025-08-12 20:52:49,438 wheel INFO adding 'pexpect/__init__.py' 2025-08-12 20:52:49,438 wheel INFO adding 'pexpect/_async.py' 2025-08-12 20:52:49,438 wheel INFO adding 'pexpect/_async_pre_await.py' 2025-08-12 20:52:49,438 wheel INFO adding 'pexpect/_async_w_await.py' 2025-08-12 20:52:49,438 wheel INFO adding 'pexpect/bashrc.sh' 2025-08-12 20:52:49,438 wheel INFO adding 'pexpect/exceptions.py' 2025-08-12 20:52:49,438 wheel INFO adding 'pexpect/expect.py' 2025-08-12 20:52:49,438 wheel INFO adding 'pexpect/fdpexpect.py' 2025-08-12 20:52:49,438 wheel INFO adding 'pexpect/popen_spawn.py' 2025-08-12 20:52:49,439 wheel INFO adding 'pexpect/pty_spawn.py' 2025-08-12 20:52:49,439 wheel INFO adding 'pexpect/pxssh.py' 2025-08-12 20:52:49,439 wheel INFO adding 'pexpect/replwrap.py' 2025-08-12 20:52:49,439 wheel INFO adding 'pexpect/run.py' 2025-08-12 20:52:49,439 wheel INFO adding 'pexpect/screen.py' 2025-08-12 20:52:49,439 wheel INFO adding 'pexpect/socket_pexpect.py' 2025-08-12 20:52:49,439 wheel INFO adding 'pexpect/spawnbase.py' 2025-08-12 20:52:49,439 wheel INFO adding 'pexpect/utils.py' 2025-08-12 20:52:49,439 wheel INFO adding 'pexpect-4.9.0.dist-info/licenses/LICENSE' 2025-08-12 20:52:49,439 wheel INFO adding 'pexpect-4.9.0.dist-info/METADATA' 2025-08-12 20:52:49,439 wheel INFO adding 'pexpect-4.9.0.dist-info/WHEEL' 2025-08-12 20:52:49,439 wheel INFO adding 'pexpect-4.9.0.dist-info/top_level.txt' 2025-08-12 20:52:49,439 wheel INFO adding 'pexpect-4.9.0.dist-info/RECORD' 2025-08-12 20:52:49,440 root INFO removing build/bdist.linux-x86_64/wheel 2025-08-12 20:52:49,440 gpep517 INFO The backend produced .dist/pexpect-4.9.0-py2.py3-none-any.whl pexpect-4.9.0-py2.py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.12.11, pytest-8.4.1, pluggy-1.6.0 -- /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/.testenv/bin/python3 cachedir: .pytest_cache rootdir: /home/udu/aports/main/py3-pexpect/src/pexpect-4.9 configfile: setup.cfg collecting ... collected 257 items / 13 deselected / 244 selected tests/test_FSM.py::FSMTestCase::test_run_fsm PASSED [ 0%] tests/test_ansi.py::ansiTestCase::test_decode_error PASSED [ 0%] tests/test_ansi.py::ansiTestCase::test_fsm_memory PASSED [ 1%] tests/test_ansi.py::ansiTestCase::test_lines PASSED [ 1%] tests/test_ansi.py::ansiTestCase::test_number_x PASSED [ 2%] tests/test_ansi.py::ansiTestCase::test_tetris PASSED [ 2%] tests/test_ansi.py::ansiTestCase::test_torturet PASSED [ 2%] tests/test_ansi.py::ansiTestCase::test_unicode PASSED [ 3%] tests/test_ansi.py::ansiTestCase::test_utf8_bytes PASSED [ 3%] tests/test_ansi.py::ansiTestCase::test_write PASSED [ 4%] tests/test_async.py::AsyncTests::test_async_and_gc FAILED [ 4%] tests/test_async.py::AsyncTests::test_async_and_sync FAILED [ 4%] tests/test_async.py::AsyncTests::test_async_replwrap FAILED [ 5%] tests/test_async.py::AsyncTests::test_async_utf8 FAILED [ 5%] tests/test_async.py::AsyncTests::test_eof FAILED [ 6%] tests/test_async.py::AsyncTests::test_expect_exact FAILED [ 6%] tests/test_async.py::AsyncTests::test_simple_expect FAILED [ 6%] tests/test_async.py::AsyncTests::test_timeout FAILED [ 7%] tests/test_command_list_split.py::SplitCommandLineTestCase::testSplitSizes PASSED [ 7%] tests/test_constructor.py::TestCaseConstructor::test_constructor FAILED [ 8%] tests/test_constructor.py::TestCaseConstructor::test_named_parameters FAILED [ 8%] tests/test_ctrl_chars.py::TestCtrlChars::test_bad_sendcontrol_chars FAILED [ 9%] tests/test_ctrl_chars.py::TestCtrlChars::test_control_chars FAILED [ 9%] tests/test_ctrl_chars.py::TestCtrlChars::test_sendcontrol FAILED [ 9%] tests/test_ctrl_chars.py::TestCtrlChars::test_sendeof FAILED [ 10%] tests/test_ctrl_chars.py::TestCtrlChars::test_sendintr FAILED [ 10%] tests/test_delay.py::TestCaseDelay::test_delayafterread FAILED [ 11%] tests/test_delay.py::TestCaseDelay::test_delaybeforesend FAILED [ 11%] tests/test_destructor.py::TestCaseDestructor::test_destructor FAILED [ 11%] tests/test_dotall.py::TestCaseDotall::test_dotall FAILED [ 12%] tests/test_dotall.py::TestCaseDotall::test_precompiled FAILED [ 12%] tests/test_env.py::TestCaseEnv::test_run_uses_env FAILED [ 13%] tests/test_env.py::TestCaseEnv::test_run_uses_env_path FAILED [ 13%] tests/test_env.py::TestCaseEnv::test_run_uses_env_path_over_path FAILED [ 13%] tests/test_env.py::TestCaseEnv::test_spawn_uses_env FAILED [ 14%] tests/test_expect.py::ExpectTestCase::test_bad_arg FAILED [ 14%] tests/test_expect.py::ExpectTestCase::test_before_across_chunks FAILED [ 15%] tests/test_expect.py::ExpectTestCase::test_before_after FAILED [ 15%] tests/test_expect.py::ExpectTestCase::test_before_after_exact FAILED [ 15%] tests/test_expect.py::ExpectTestCase::test_before_after_timeout FAILED [ 16%] tests/test_expect.py::ExpectTestCase::test_buffer_interface FAILED [ 16%] tests/test_expect.py::ExpectTestCase::test_coerce_expect_re_enc_ascii FAILED [ 17%] tests/test_expect.py::ExpectTestCase::test_coerce_expect_re_enc_none FAILED [ 17%] tests/test_expect.py::ExpectTestCase::test_coerce_expect_re_enc_utf8 FAILED [ 18%] tests/test_expect.py::ExpectTestCase::test_expect FAILED [ 18%] tests/test_expect.py::ExpectTestCase::test_expect_basic FAILED [ 18%] tests/test_expect.py::ExpectTestCase::test_expect_echo FAILED [ 19%] tests/test_expect.py::ExpectTestCase::test_expect_echo_exact FAILED [ 19%] tests/test_expect.py::ExpectTestCase::test_expect_eof FAILED [ 20%] tests/test_expect.py::ExpectTestCase::test_expect_exact FAILED [ 20%] tests/test_expect.py::ExpectTestCase::test_expect_exact_basic FAILED [ 20%] tests/test_expect.py::ExpectTestCase::test_expect_ignore_case FAILED [ 21%] tests/test_expect.py::ExpectTestCase::test_expect_ignore_case_flag FAILED [ 21%] tests/test_expect.py::ExpectTestCase::test_expect_index FAILED [ 22%] tests/test_expect.py::ExpectTestCase::test_expect_index_exact FAILED [ 22%] tests/test_expect.py::ExpectTestCase::test_expect_order FAILED [ 22%] tests/test_expect.py::ExpectTestCase::test_expect_order_exact FAILED [ 23%] tests/test_expect.py::ExpectTestCase::test_expect_regex_enc_none FAILED [ 23%] tests/test_expect.py::ExpectTestCase::test_expect_regex_enc_utf8 FAILED [ 24%] tests/test_expect.py::ExpectTestCase::test_expect_setecho_off FAILED [ 24%] tests/test_expect.py::ExpectTestCase::test_expect_setecho_off_exact FAILED [ 25%] tests/test_expect.py::ExpectTestCase::test_expect_timeout FAILED [ 25%] tests/test_expect.py::ExpectTestCase::test_greed FAILED [ 25%] tests/test_expect.py::ExpectTestCase::test_greed_exact FAILED [ 26%] tests/test_expect.py::ExpectTestCase::test_increasing_searchwindowsize FAILED [ 26%] tests/test_expect.py::ExpectTestCase::test_ordering FAILED [ 27%] tests/test_expect.py::ExpectTestCase::test_ordering_exact FAILED [ 27%] tests/test_expect.py::ExpectTestCase::test_searchwindowsize FAILED [ 27%] tests/test_expect.py::ExpectTestCase::test_signal_handling FAILED [ 28%] tests/test_expect.py::ExpectTestCase::test_stdin_closed FAILED [ 28%] tests/test_expect.py::ExpectTestCase::test_stdin_stdout_closed FAILED [ 29%] tests/test_expect.py::ExpectTestCase::test_timeout_none FAILED [ 29%] tests/test_expect.py::ExpectTestCase::test_unexpected_eof FAILED [ 29%] tests/test_expect.py::ExpectTestCase::test_waitnoecho FAILED [ 30%] tests/test_expect.py::ExpectTestCase::test_waitnoecho_order FAILED [ 30%] tests/test_filedescriptor.py::ExpectTestCase::test_fd PASSED [ 31%] tests/test_filedescriptor.py::ExpectTestCase::test_fd_isalive PASSED [ 31%] tests/test_filedescriptor.py::ExpectTestCase::test_fd_isatty PASSED [ 31%] tests/test_filedescriptor.py::ExpectTestCase::test_fileobj PASSED [ 32%] tests/test_filedescriptor.py::ExpectTestCase::test_maxread PASSED [ 32%] tests/test_interact.py::InteractTestCase::test_interact_escape FAILED [ 33%] tests/test_interact.py::InteractTestCase::test_interact_escape_None FAILED [ 33%] tests/test_interact.py::InteractTestCase::test_interact_exit_unicode FAILED [ 34%] tests/test_isalive.py::IsAliveTestCase::test_expect_isalive_consistent_multiple_calls FAILED [ 34%] tests/test_isalive.py::IsAliveTestCase::test_expect_isalive_dead_after_SIGHUP FAILED [ 34%] tests/test_isalive.py::IsAliveTestCase::test_expect_isalive_dead_after_SIGINT FAILED [ 35%] tests/test_isalive.py::IsAliveTestCase::test_expect_isalive_dead_after_SIGKILL FAILED [ 35%] tests/test_isalive.py::IsAliveTestCase::test_expect_isalive_dead_after_normal_termination FAILED [ 36%] tests/test_isalive.py::IsAliveTestCase::test_expect_wait FAILED [ 36%] tests/test_isalive.py::IsAliveTestCase::test_expect_wait_after_termination FAILED [ 36%] tests/test_isalive.py::IsAliveTestCase::test_forced_terminate FAILED [ 37%] tests/test_isalive.py::IsAliveTestCase::test_signal_wait FAILED [ 37%] tests/test_log.py::TestCaseLog::test_log FAILED [ 38%] tests/test_log.py::TestCaseLog::test_log_logfile_read FAILED [ 38%] tests/test_log.py::TestCaseLog::test_log_logfile_send FAILED [ 38%] tests/test_log.py::TestCaseLog::test_log_send_and_received FAILED [ 39%] tests/test_misc.py::TestCaseMisc::test_bad_arguments_second_arg_is_list PASSED [ 39%] tests/test_misc.py::TestCaseMisc::test_bad_arguments_suggest_fdpsawn PASSED [ 40%] tests/test_misc.py::TestCaseMisc::test_bad_child_pid FAILED [ 40%] tests/test_misc.py::TestCaseMisc::test_bad_type_in_expect FAILED [ 40%] tests/test_misc.py::TestCaseMisc::test_cwd FAILED [ 41%] tests/test_misc.py::TestCaseMisc::test_eof FAILED [ 41%] tests/test_misc.py::TestCaseMisc::test_exception_tb FAILED [ 42%] tests/test_misc.py::TestCaseMisc::test_isalive FAILED [ 42%] tests/test_misc.py::TestCaseMisc::test_isatty FAILED [ 43%] tests/test_misc.py::TestCaseMisc::test_isatty_poll FAILED [ 43%] tests/test_misc.py::TestCaseMisc::test_iter FAILED [ 43%] tests/test_misc.py::TestCaseMisc::test_nonnative_pty_fork FAILED [ 44%] tests/test_misc.py::TestCaseMisc::test_read FAILED [ 44%] tests/test_misc.py::TestCaseMisc::test_read_after_close_raises_value_error FAILED [ 45%] tests/test_misc.py::TestCaseMisc::test_read_poll FAILED [ 45%] tests/test_misc.py::TestCaseMisc::test_read_poll_timeout FAILED [ 45%] tests/test_misc.py::TestCaseMisc::test_readline FAILED [ 46%] tests/test_misc.py::TestCaseMisc::test_readline_bin_echo FAILED [ 46%] tests/test_misc.py::TestCaseMisc::test_readlines FAILED [ 47%] tests/test_misc.py::TestCaseMisc::test_searcher_as_string PASSED [ 47%] tests/test_misc.py::TestCaseMisc::test_searcher_as_string_with_EOF PASSED [ 47%] tests/test_misc.py::TestCaseMisc::test_searcher_as_string_with_TIMEOUT PASSED [ 48%] tests/test_misc.py::TestCaseMisc::test_searcher_re_as_string PASSED [ 48%] tests/test_misc.py::TestCaseMisc::test_searcher_re_as_string_with_EOF PASSED [ 49%] tests/test_misc.py::TestCaseMisc::test_searcher_re_as_string_with_TIMEOUT PASSED [ 49%] tests/test_misc.py::TestCaseMisc::test_sighup FAILED [ 50%] tests/test_misc.py::TestCaseMisc::test_terminate FAILED [ 50%] tests/test_misc.py::TestCaseMisc::test_with FAILED [ 50%] tests/test_misc.py::TestCaseMisc::test_write FAILED [ 51%] tests/test_misc.py::TestCaseMisc::test_writelines FAILED [ 51%] tests/test_missing_command.py::MissingCommandTestCase::testMissingCommand PASSED [ 52%] tests/test_performance.py::PerformanceTestCase::test_100000 FAILED [ 52%] tests/test_performance.py::PerformanceTestCase::test_large_stdout_stream FAILED [ 52%] tests/test_pickling.py::PickleTest::test_picking PASSED [ 53%] tests/test_popen_spawn.py::ExpectTestCase::test_bad_arg PASSED [ 53%] tests/test_popen_spawn.py::ExpectTestCase::test_crlf PASSED [ 54%] tests/test_popen_spawn.py::ExpectTestCase::test_crlf_encoding PASSED [ 54%] tests/test_popen_spawn.py::ExpectTestCase::test_expect PASSED [ 54%] tests/test_popen_spawn.py::ExpectTestCase::test_expect_basic PASSED [ 55%] tests/test_popen_spawn.py::ExpectTestCase::test_expect_eof PASSED [ 55%] tests/test_popen_spawn.py::ExpectTestCase::test_expect_exact PASSED [ 56%] tests/test_popen_spawn.py::ExpectTestCase::test_expect_exact_basic PASSED [ 56%] tests/test_popen_spawn.py::ExpectTestCase::test_expect_timeout PASSED [ 56%] tests/test_popen_spawn.py::ExpectTestCase::test_timeout_none PASSED [ 57%] tests/test_popen_spawn.py::ExpectTestCase::test_unexpected_eof PASSED [ 57%] tests/test_pxssh.py::PxsshTestCase::test_connection_refused FAILED [ 58%] tests/test_pxssh.py::PxsshTestCase::test_custom_ssh_cmd FAILED [ 58%] tests/test_pxssh.py::PxsshTestCase::test_custom_ssh_cmd_debug PASSED [ 59%] tests/test_pxssh.py::PxsshTestCase::test_failed_custom_ssh_cmd FAILED [ 59%] tests/test_pxssh.py::PxsshTestCase::test_failed_custom_ssh_cmd_debug PASSED [ 59%] tests/test_pxssh.py::PxsshTestCase::test_failed_set_unique_prompt FAILED [ 60%] tests/test_pxssh.py::PxsshTestCase::test_fake_ssh FAILED [ 60%] tests/test_pxssh.py::PxsshTestCase::test_login_bash FAILED [ 61%] tests/test_pxssh.py::PxsshTestCase::test_login_tcsh FAILED [ 61%] tests/test_pxssh.py::PxsshTestCase::test_login_zsh FAILED [ 61%] tests/test_pxssh.py::PxsshTestCase::test_remote_ssh_tunnel_string PASSED [ 62%] tests/test_pxssh.py::PxsshTestCase::test_ssh_config_empty_user PASSED [ 62%] tests/test_pxssh.py::PxsshTestCase::test_ssh_config_no_user PASSED [ 63%] tests/test_pxssh.py::PxsshTestCase::test_ssh_config_no_username_empty_config PASSED [ 63%] tests/test_pxssh.py::PxsshTestCase::test_ssh_config_passing_string PASSED [ 63%] tests/test_pxssh.py::PxsshTestCase::test_ssh_config_user PASSED [ 64%] tests/test_pxssh.py::PxsshTestCase::test_ssh_config_wrong_Host PASSED [ 64%] tests/test_pxssh.py::PxsshTestCase::test_ssh_key_string PASSED [ 65%] tests/test_pxssh.py::PxsshTestCase::test_ssh_tunnel_string PASSED [ 65%] tests/test_pxssh.py::PxsshTestCase::test_username_or_ssh_config PASSED [ 65%] tests/test_pxssh.py::PxsshTestCase::test_wrong_pw FAILED [ 66%] tests/test_repr.py::TestCaseMisc::test_str_before_spawn PASSED [ 66%] tests/test_repr.py::TestCaseMisc::test_str_spawn FAILED [ 67%] tests/test_repr.py::TestCaseMisc::test_str_spawnu FAILED [ 67%] tests/test_run.py::RunFuncTestCase::test_run FAILED [ 68%] tests/test_run.py::RunFuncTestCase::test_run_bad_exitstatus FAILED [ 68%] tests/test_run.py::RunFuncTestCase::test_run_callback FAILED [ 68%] tests/test_run.py::RunFuncTestCase::test_run_event_as_function FAILED [ 69%] tests/test_run.py::RunFuncTestCase::test_run_event_as_method FAILED [ 69%] tests/test_run.py::RunFuncTestCase::test_run_event_as_string FAILED [ 70%] tests/test_run.py::RunFuncTestCase::test_run_event_typeerror FAILED [ 70%] tests/test_run.py::RunFuncTestCase::test_run_exit FAILED [ 70%] tests/test_run.py::RunUnicodeFuncTestCase::test_run FAILED [ 71%] tests/test_run.py::RunUnicodeFuncTestCase::test_run_bad_exitstatus FAILED [ 71%] tests/test_run.py::RunUnicodeFuncTestCase::test_run_callback FAILED [ 72%] tests/test_run.py::RunUnicodeFuncTestCase::test_run_event_as_function FAILED [ 72%] tests/test_run.py::RunUnicodeFuncTestCase::test_run_event_as_method FAILED [ 72%] tests/test_run.py::RunUnicodeFuncTestCase::test_run_event_as_string FAILED [ 73%] tests/test_run.py::RunUnicodeFuncTestCase::test_run_event_typeerror FAILED [ 73%] tests/test_run.py::RunUnicodeFuncTestCase::test_run_exit FAILED [ 74%] tests/test_run.py::RunUnicodeFuncTestCase::test_run_unicode FAILED [ 74%] tests/test_screen.py::screenTestCase::test_cursor_save PASSED [ 75%] tests/test_screen.py::screenTestCase::test_decoding_errors PASSED [ 75%] tests/test_screen.py::screenTestCase::test_fill PASSED [ 75%] tests/test_screen.py::screenTestCase::test_get_region PASSED [ 76%] tests/test_screen.py::screenTestCase::test_insert PASSED [ 76%] tests/test_screen.py::screenTestCase::test_no_bytes PASSED [ 77%] tests/test_screen.py::screenTestCase::test_put PASSED [ 77%] tests/test_screen.py::screenTestCase::test_scroll PASSED [ 77%] tests/test_screen.py::screenTestCase::test_unicode_ascii PASSED [ 78%] tests/test_screen.py::screenTestCase::test_unicode_cp437 PASSED [ 78%] tests/test_screen.py::screenTestCase::test_unicode_utf8 PASSED [ 79%] tests/test_socket.py::ExpectTestCase::test_fd_isalive FAILED [ 79%] tests/test_socket.py::ExpectTestCase::test_fd_isalive_poll FAILED [ 79%] tests/test_socket.py::ExpectTestCase::test_fd_isatty FAILED [ 80%] tests/test_socket.py::ExpectTestCase::test_fd_isatty_poll FAILED [ 80%] tests/test_socket.py::ExpectTestCase::test_maxread FAILED [ 81%] tests/test_socket.py::ExpectTestCase::test_multiple_interrupts FAILED [ 81%] tests/test_socket.py::ExpectTestCase::test_socket FAILED [ 81%] tests/test_socket.py::ExpectTestCase::test_socket_with_write FAILED [ 82%] tests/test_socket.py::ExpectTestCase::test_timeout FAILED [ 82%] tests/test_socket_fd.py::ExpectTestCase::test_fd_isalive FAILED [ 83%] tests/test_socket_fd.py::ExpectTestCase::test_fd_isalive_poll FAILED [ 83%] tests/test_socket_fd.py::ExpectTestCase::test_fd_isatty FAILED [ 84%] tests/test_socket_fd.py::ExpectTestCase::test_fd_isatty_poll FAILED [ 84%] tests/test_socket_fd.py::ExpectTestCase::test_fileobj FAILED [ 84%] tests/test_socket_fd.py::ExpectTestCase::test_maxread FAILED [ 85%] tests/test_socket_fd.py::ExpectTestCase::test_multiple_interrupts FAILED [ 85%] tests/test_socket_fd.py::ExpectTestCase::test_not_file_descriptor FAILED [ 86%] tests/test_socket_fd.py::ExpectTestCase::test_not_int FAILED [ 86%] tests/test_socket_fd.py::ExpectTestCase::test_socket FAILED [ 86%] tests/test_socket_fd.py::ExpectTestCase::test_socket_with_write FAILED [ 87%] tests/test_socket_fd.py::ExpectTestCase::test_timeout FAILED [ 87%] tests/test_socket_pexpect.py::ExpectTestCase::test_maxread PASSED [ 88%] tests/test_socket_pexpect.py::ExpectTestCase::test_socket PASSED [ 88%] tests/test_socket_pexpect.py::ExpectTestCase::test_socket_isalive PASSED [ 88%] tests/test_socket_pexpect.py::ExpectTestCase::test_socket_isatty PASSED [ 89%] tests/test_timeout_pattern.py::Exp_TimeoutTestCase::test_correctStackTrace FAILED [ 89%] tests/test_timeout_pattern.py::Exp_TimeoutTestCase::test_exp_timeout_notThrown FAILED [ 90%] tests/test_timeout_pattern.py::Exp_TimeoutTestCase::test_matches_exp_timeout PASSED [ 90%] tests/test_timeout_pattern.py::Exp_TimeoutTestCase::test_pattern_printout FAILED [ 90%] tests/test_timeout_pattern.py::Exp_TimeoutTestCase::test_stacktraceMunging FAILED [ 91%] tests/test_unicode.py::UnicodeTests::test_expect_basic FAILED [ 91%] tests/test_unicode.py::UnicodeTests::test_expect_echo_exact FAILED [ 92%] tests/test_unicode.py::UnicodeTests::test_expect_exact_basic FAILED [ 92%] tests/test_unicode.py::UnicodeTests::test_expect_setecho_toggle FAILED [ 93%] tests/test_unicode.py::UnicodeTests::test_expect_setecho_toggle_exact FAILED [ 93%] tests/test_unicode.py::UnicodeTests::test_log_unicode FAILED [ 93%] tests/test_unicode.py::UnicodeTests::test_readline_bin_echo FAILED [ 94%] tests/test_unicode.py::UnicodeTests::test_spawn_expect_ascii_unicode FAILED [ 94%] tests/test_unicode.py::UnicodeTests::test_spawn_send_unicode FAILED [ 95%] tests/test_unicode.py::UnicodeTests::test_spawn_utf8_incomplete FAILED [ 95%] tests/test_unicode.py::UnicodeTests::test_unicode_argv FAILED [ 95%] tests/test_which.py::TestCaseWhich::test_os_defpath_which PASSED [ 96%] tests/test_which.py::TestCaseWhich::test_path_from_env PASSED [ 96%] tests/test_which.py::TestCaseWhich::test_path_search_which PASSED [ 97%] tests/test_which.py::TestCaseWhich::test_which_finds_ls PASSED [ 97%] tests/test_which.py::TestCaseWhich::test_which_follows_symlink PASSED [ 97%] tests/test_which.py::TestCaseWhich::test_which_should_match_other_group_user PASSED [ 98%] tests/test_which.py::TestCaseWhich::test_which_should_not_match_folders PASSED [ 98%] tests/test_winsize.py::TestCaseWinsize::test_initial_winsize FAILED [ 99%] tests/test_winsize.py::TestCaseWinsize::test_initial_winsize_by_dimension FAILED [ 99%] tests/test_winsize.py::TestCaseWinsize::test_setwinsize FAILED [100%] =================================== FAILURES =================================== _________________________ AsyncTests.test_async_and_gc _________________________ self = async def test_async_and_gc(self): > p = pexpect.spawn("%s sleep_for.py 1" % self.PYTHONBIN, encoding="utf8") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_async.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_async.AsyncTests.test_async_and_gc ________________________ AsyncTests.test_async_and_sync ________________________ self = async def test_async_and_sync(self): > p = pexpect.spawn("echo 1234", encoding="utf8", maxread=1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_async.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_async.AsyncTests.test_async_and_sync ________________________ AsyncTests.test_async_replwrap ________________________ self = async def test_async_replwrap(self): > bash = replwrap.bash() ^^^^^^^^^^^^^^^ tests/test_async.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/replwrap.py:132: in bash return _repl_sh(command, ['--rcfile', bashrc], non_printable_insert='\\[\\]') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pexpect/replwrap.py:116: in _repl_sh child = pexpect.spawn(command, args, echo=False, encoding='utf-8') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_async.AsyncTests.test_async_replwrap __________________________ AsyncTests.test_async_utf8 __________________________ self = async def test_async_utf8(self): > p = pexpect.spawn("%s list100.py" % self.PYTHONBIN, encoding="utf8") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_async.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_async.AsyncTests.test_async_utf8 _____________________________ AsyncTests.test_eof ______________________________ self = async def test_eof(self): > p = pexpect.spawn("cat") ^^^^^^^^^^^^^^^^^^^^ tests/test_async.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_async.AsyncTests.test_eof _________________________ AsyncTests.test_expect_exact _________________________ self = async def test_expect_exact(self): > p = pexpect.spawn("%s list100.py" % self.PYTHONBIN) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_async.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_async.AsyncTests.test_expect_exact ________________________ AsyncTests.test_simple_expect _________________________ self = async def test_simple_expect(self): > p = pexpect.spawn("cat") ^^^^^^^^^^^^^^^^^^^^ tests/test_async.py:19: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_async.AsyncTests.test_simple_expect ___________________________ AsyncTests.test_timeout ____________________________ self = async def test_timeout(self): > p = pexpect.spawn("cat") ^^^^^^^^^^^^^^^^^^^^ tests/test_async.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_async.AsyncTests.test_timeout _____________________ TestCaseConstructor.test_constructor _____________________ self = def test_constructor (self): '''This tests that the constructor will work and give the same results for different styles of invoking __init__(). This assumes that the root directory / is static during the test. ''' > p1 = pexpect.spawn('uname -m -n -p -r -s -v') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_constructor.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_constructor.TestCaseConstructor.test_constructor __________________ TestCaseConstructor.test_named_parameters ___________________ self = def test_named_parameters (self): '''This tests that named parameters work. ''' > p = pexpect.spawn ('/bin/ls',timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_constructor.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_constructor.TestCaseConstructor.test_named_parameters ___________________ TestCtrlChars.test_bad_sendcontrol_chars ___________________ self = def test_bad_sendcontrol_chars (self): '''This tests that sendcontrol will return 0 for an unknown char. ''' > child = pexpect.spawn(self.getch_cmd, echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_ctrl_chars.py:87: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_ctrl_chars.TestCtrlChars.test_bad_sendcontrol_chars _______________________ TestCtrlChars.test_control_chars _______________________ self = def test_control_chars(self): '''This tests that we can send all 256 8-bit characters to a child process.''' > child = pexpect.spawn(self.getch_cmd, echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_ctrl_chars.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_ctrl_chars.TestCtrlChars.test_control_chars ________________________ TestCtrlChars.test_sendcontrol ________________________ self = def test_sendcontrol(self): '''This tests that we can send all special control codes by name. ''' > child = pexpect.spawn(self.getch_cmd, echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_ctrl_chars.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_ctrl_chars.TestCtrlChars.test_sendcontrol __________________________ TestCtrlChars.test_sendeof __________________________ self = def test_sendeof(self): > child = pexpect.spawn(self.getch_cmd, echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_ctrl_chars.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_ctrl_chars.TestCtrlChars.test_sendeof _________________________ TestCtrlChars.test_sendintr __________________________ self = def test_sendintr (self): > child = pexpect.spawn(self.getch_cmd, echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_ctrl_chars.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_ctrl_chars.TestCtrlChars.test_sendintr ______________________ TestCaseDelay.test_delayafterread _______________________ self = def test_delayafterread(self): """ Test various values for delayafterread. """ > p = pexpect.spawn("cat") ^^^^^^^^^^^^^^^^^^^^ tests/test_delay.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_delay.TestCaseDelay.test_delayafterread ______________________ TestCaseDelay.test_delaybeforesend ______________________ self = def test_delaybeforesend(self): """ Test various values for delaybeforesend. """ > p = pexpect.spawn("cat") ^^^^^^^^^^^^^^^^^^^^ tests/test_delay.py:15: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_delay.TestCaseDelay.test_delaybeforesend ______________________ TestCaseDestructor.test_destructor ______________________ self = def test_destructor (self): if platform.python_implementation() != 'CPython': # Details of garbage collection are different on other implementations return 'SKIP' gc.collect() time.sleep(3) > p1 = pexpect.spawn('%s hello_world.py' % self.PYTHONBIN) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_destructor.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_destructor.TestCaseDestructor.test_destructor __________________________ TestCaseDotall.test_dotall __________________________ self = def test_dotall (self): > p = pexpect.spawn('echo "%s"' % testdata) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_dotall.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_dotall.TestCaseDotall.test_dotall _______________________ TestCaseDotall.test_precompiled ________________________ self = def test_precompiled (self): > p = pexpect.spawn('echo "%s"' % testdata) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_dotall.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_dotall.TestCaseDotall.test_precompiled ________________________ TestCaseEnv.test_run_uses_env _________________________ self = def test_run_uses_env(self): " pexpect.run uses env argument when running child process " script_name = 'run_uses_env.sh' environ = {'PEXPECT_TEST_KEY': 'pexpect test value'} with example_script(script_name, '$PEXPECT_TEST_KEY') as script_dir: script = os.path.join(script_dir, script_name) > out = pexpect.run(script, env=environ) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_env.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_env.TestCaseEnv.test_run_uses_env ______________________ TestCaseEnv.test_run_uses_env_path ______________________ self = def test_run_uses_env_path(self): " pexpect.run uses binary from PATH when given in env argument " script_name = 'run_uses_env_path.sh' with example_script(script_name) as script_dir: > out = pexpect.run(script_name, env={'PATH': script_dir}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_env.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_env.TestCaseEnv.test_run_uses_env_path _________________ TestCaseEnv.test_run_uses_env_path_over_path _________________ self = def test_run_uses_env_path_over_path(self): " pexpect.run uses PATH from env over os.environ " script_name = 'run_uses_env_path_over_path.sh' with example_script(script_name, output='failure') as wrong_dir: with example_script(script_name) as right_dir: orig_path = os.environ['PATH'] os.environ['PATH'] = wrong_dir try: > out = pexpect.run(script_name, env={'PATH': right_dir}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_env.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_env.TestCaseEnv.test_run_uses_env_path_over_path _______________________ TestCaseEnv.test_spawn_uses_env ________________________ self = def test_spawn_uses_env(self): " pexpect.spawn uses env argument when running child process " script_name = 'spawn_uses_env.sh' environ = {'PEXPECT_TEST_KEY': 'pexpect test value'} with example_script(script_name, '$PEXPECT_TEST_KEY') as script_dir: script = os.path.join(script_dir, script_name) > child = pexpect.spawn(script, env=environ) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_env.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_env.TestCaseEnv.test_spawn_uses_env _________________________ ExpectTestCase.test_bad_arg __________________________ self = def test_bad_arg(self): > p = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:645: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_bad_arg ___________________ ExpectTestCase.test_before_across_chunks ___________________ self = def test_before_across_chunks(self): # https://github.com/pexpect/pexpect/issues/478 > child = pexpect.spawn( '''/bin/sh -c "openssl rand -base64 {} 2>/dev/null | head -500 | nl -n rz -w 5 2>&1 ; echo 'PATTERN!!!'"'''.format(1024 * 1024 * 2), searchwindowsize=128 ) tests/test_expect.py:487: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_before_across_chunks _______________________ ExpectTestCase.test_before_after _______________________ self = def test_before_after(self): '''This tests expect() for some simple before/after things. ''' > p = pexpect.spawn('%s -Wi list100.py' % self.PYTHONBIN, env=no_coverage_env()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:516: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_before_after ____________________ ExpectTestCase.test_before_after_exact ____________________ self = def test_before_after_exact(self): '''This tests some simple before/after things, for expect_exact(). (Grahn broke it at one point.) ''' > p = pexpect.spawn('%s -Wi list100.py' % self.PYTHONBIN, env=no_coverage_env()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:523: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_before_after_exact ___________________ ExpectTestCase.test_before_after_timeout ___________________ self = def test_before_after_timeout(self): '''Tests that timeouts do not truncate before, a bug in 4.4-4.7.''' > child = pexpect.spawn('cat', echo=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:530: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_before_after_timeout _____________________ ExpectTestCase.test_buffer_interface _____________________ self = def test_buffer_interface(self): > p = pexpect.spawn('cat', timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:478: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_buffer_interface ________________ ExpectTestCase.test_coerce_expect_re_enc_ascii ________________ self = def test_coerce_expect_re_enc_ascii (self): '''This test that compiled regex patterns won't ever be bytes type when spawn objects have ascii encoding ''' r, expected_type = self._select_types('ascii') > p = pexpect.spawn('true', encoding='ascii') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:139: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_coerce_expect_re_enc_ascii ________________ ExpectTestCase.test_coerce_expect_re_enc_none _________________ self = def test_coerce_expect_re_enc_none (self): '''This test that compiled regex patterns will always be bytes type when spawn objects have no encoding or encoding=None ''' r, expected_type = self._select_types() > p = pexpect.spawn('true') ^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_coerce_expect_re_enc_none ________________ ExpectTestCase.test_coerce_expect_re_enc_utf8 _________________ self = def test_coerce_expect_re_enc_utf8 (self): '''This test that compiled regex patterns won't ever be bytes type when spawn objects have utf-8 encoding ''' r, expected_type = self._select_types('utf-8') > p = pexpect.spawn('true', encoding='utf-8') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:149: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_coerce_expect_re_enc_utf8 __________________________ ExpectTestCase.test_expect __________________________ self = def test_expect (self): the_old_way = subprocess.Popen(args=['ls', '-l', '/bin'], stdout=subprocess.PIPE).communicate()[0].rstrip() > p = pexpect.spawn('ls -l /bin') ^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:417: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect _______________________ ExpectTestCase.test_expect_basic _______________________ self = def test_expect_basic (self): > p = pexpect.spawn('cat', echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_basic _______________________ ExpectTestCase.test_expect_echo ________________________ self = def test_expect_echo (self): '''This tests that echo is on by default. ''' > p = pexpect.spawn('cat', echo=True, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:316: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_echo ____________________ ExpectTestCase.test_expect_echo_exact _____________________ self = def test_expect_echo_exact (self): '''Like test_expect_echo(), but using expect_exact(). ''' > p = pexpect.spawn('cat', echo=True, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:322: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_echo_exact ________________________ ExpectTestCase.test_expect_eof ________________________ self = def test_expect_eof (self): the_old_way = subprocess.Popen(args=['/bin/ls', '-l', '/bin'], stdout=subprocess.PIPE).communicate()[0].rstrip() > p = pexpect.spawn('/bin/ls -l /bin') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:454: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_eof _______________________ ExpectTestCase.test_expect_exact _______________________ self = def test_expect_exact (self): the_old_way = subprocess.Popen(args=['ls', '-l', '/bin'], stdout=subprocess.PIPE).communicate()[0].rstrip() > p = pexpect.spawn('ls -l /bin') ^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:434: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_exact ____________________ ExpectTestCase.test_expect_exact_basic ____________________ self = def test_expect_exact_basic (self): > p = pexpect.spawn('cat', echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_exact_basic ____________________ ExpectTestCase.test_expect_ignore_case ____________________ self = def test_expect_ignore_case(self): '''This test that the ignorecase flag will match patterns even if case is different using the regex (?i) directive. ''' > p = pexpect.spawn('cat', echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_ignore_case _________________ ExpectTestCase.test_expect_ignore_case_flag __________________ self = def test_expect_ignore_case_flag(self): '''This test that the ignorecase flag will match patterns even if case is different using the ignorecase flag. ''' > p = pexpect.spawn('cat', echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_ignore_case_flag _______________________ ExpectTestCase.test_expect_index _______________________ self = def test_expect_index (self): '''This tests that mixed list of regex strings, TIMEOUT, and EOF all return the correct index when matched. ''' > p = pexpect.spawn('cat', echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:386: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_index ____________________ ExpectTestCase.test_expect_index_exact ____________________ self = def test_expect_index_exact (self): '''Like test_expect_index(), but using expect_exact(). ''' > p = pexpect.spawn('cat', echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:392: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_index_exact _______________________ ExpectTestCase.test_expect_order _______________________ self = def test_expect_order (self): '''This tests that patterns are matched in the same order as given in the pattern_list. (Or does it? Doesn't it also pass if expect() always chooses (one of the) the leftmost matches in the input? -- grahn) ... agreed! -jquast, the buffer ptr isn't forwarded on match, see first two test cases ''' > p = pexpect.spawn('cat', echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:185: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_order ____________________ ExpectTestCase.test_expect_order_exact ____________________ self = def test_expect_order_exact (self): '''Like test_expect_order(), but using expect_exact(). ''' > p = pexpect.spawn('cat', echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:191: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_order_exact __________________ ExpectTestCase.test_expect_regex_enc_none ___________________ self = def test_expect_regex_enc_none (self): '''This test that bytes mode spawn objects (encoding=None) parses correctly regex patterns compiled from non-bytes type objects ''' > p = pexpect.spawn('cat', echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_regex_enc_none __________________ ExpectTestCase.test_expect_regex_enc_utf8 ___________________ self = def test_expect_regex_enc_utf8 (self): '''This test that non-bytes mode spawn objects (encoding='utf-8') parses correctly regex patterns compiled from bytes type objects ''' > p = pexpect.spawn('cat', echo=False, timeout=5, encoding='utf-8') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:170: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_regex_enc_utf8 ____________________ ExpectTestCase.test_expect_setecho_off ____________________ self = def test_expect_setecho_off(self): '''This tests that echo may be toggled off. ''' > p = pexpect.spawn('cat', echo=True, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_setecho_off _________________ ExpectTestCase.test_expect_setecho_off_exact _________________ self = def test_expect_setecho_off_exact(self): > p = pexpect.spawn('cat', echo=True, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:252: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_setecho_off_exact ______________________ ExpectTestCase.test_expect_timeout ______________________ self = def test_expect_timeout (self): > p = pexpect.spawn('cat', timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:464: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_timeout __________________________ ExpectTestCase.test_greed ___________________________ self = def test_greed(self): > p = pexpect.spawn(self.PYTHONBIN + ' list100.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:631: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_greed _______________________ ExpectTestCase.test_greed_exact ________________________ self = def test_greed_exact(self): > p = pexpect.spawn(self.PYTHONBIN + ' list100.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:638: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_greed_exact _______________ ExpectTestCase.test_increasing_searchwindowsize ________________ self = def test_increasing_searchwindowsize(self): '''Tests that the search window can be expanded, a bug in 4.4-4.7.''' > child = pexpect.spawn('cat', echo=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:547: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_increasing_searchwindowsize _________________________ ExpectTestCase.test_ordering _________________________ self = def test_ordering(self): '''This tests expect() for which pattern is returned when many may eventually match. I (Grahn) am a bit confused about what should happen, but this test passes with pexpect 2.1. ''' > p = pexpect.spawn(self.PYTHONBIN) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:598: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_ordering ______________________ ExpectTestCase.test_ordering_exact ______________________ self = def test_ordering_exact(self): '''This tests expect_exact() for which pattern is returned when many may eventually match. I (Grahn) am a bit confused about what should happen, but this test passes for the expect() method with pexpect 2.1. ''' > p = pexpect.spawn(self.PYTHONBIN) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:607: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_ordering_exact _____________________ ExpectTestCase.test_searchwindowsize _____________________ self = def test_searchwindowsize(self): '''Tests that we don't match outside the window, a bug in 4.4-4.7.''' > p = pexpect.spawn('echo foobarbazbop') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:565: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_searchwindowsize _____________________ ExpectTestCase.test_signal_handling ______________________ self = def test_signal_handling(self): ''' This tests the error handling of a signal interrupt (usually a SIGWINCH generated when a window is resized), but in this test, we are substituting an ALARM signal as this is much easier for testing and is treated the same as a SIGWINCH. To ensure that the alarm fires during the expect call, we are setting the signal to alarm after 1 second while the spawned process sleeps for 2 seconds prior to sending the expected output. ''' def noop(x, y): pass signal.signal(signal.SIGALRM, noop) > p1 = pexpect.spawn('%s sleep_for.py 2' % self.PYTHONBIN, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:676: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_signal_handling _______________________ ExpectTestCase.test_stdin_closed _______________________ self = def test_stdin_closed(self): ''' Ensure pexpect continues to operate even when stdin is closed ''' class Closed_stdin_proc(multiprocessing.Process): def run(self): sys.__stdin__.close() cat = pexpect.spawn('cat') cat.sendeof() cat.expect(pexpect.EOF) proc = Closed_stdin_proc() proc.start() proc.join() > assert proc.exitcode == 0 E AssertionError: assert 1 == 0 E + where 1 = .exitcode tests/test_expect.py:695: AssertionError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_stdin_closed ----------------------------- Captured stderr call ----------------------------- Process Closed_stdin_proc-1: Traceback (most recent call last): File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap self.run() File "/home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_expect.py", line 688, in run cat = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ File "/home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py", line 205, in __init__ self._spawn(command, args, preexec_fn, dimensions) File "/home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py", line 303, in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py", line 315, in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py", line 230, in spawn pid, fd = pty.fork() ^^^^^^^^^^ File "/usr/lib/python3.12/pty.py", line 107, in fork master_fd, slave_fd = openpty() ^^^^^^^^^ File "/usr/lib/python3.12/pty.py", line 34, in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/pty.py", line 67, in _open_terminal raise OSError('out of pty devices') OSError: out of pty devices ___________________ ExpectTestCase.test_stdin_stdout_closed ____________________ self = def test_stdin_stdout_closed(self): ''' Ensure pexpect continues to operate even when stdin and stdout is closed ''' class Closed_stdin_stdout_proc(multiprocessing.Process): def run(self): sys.__stdin__.close() sys.__stdout__.close() cat = pexpect.spawn('cat') cat.sendeof() cat.expect(pexpect.EOF) proc = Closed_stdin_stdout_proc() proc.start() proc.join() > assert proc.exitcode == 0 E AssertionError: assert 1 == 0 E + where 1 = .exitcode tests/test_expect.py:712: AssertionError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_stdin_stdout_closed ----------------------------- Captured stderr call ----------------------------- Process Closed_stdin_stdout_proc-2: Traceback (most recent call last): File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap self.run() File "/home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_expect.py", line 705, in run cat = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ File "/home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py", line 205, in __init__ self._spawn(command, args, preexec_fn, dimensions) File "/home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py", line 303, in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py", line 315, in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py", line 230, in spawn pid, fd = pty.fork() ^^^^^^^^^^ File "/usr/lib/python3.12/pty.py", line 107, in fork master_fd, slave_fd = openpty() ^^^^^^^^^ File "/usr/lib/python3.12/pty.py", line 34, in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/pty.py", line 67, in _open_terminal raise OSError('out of pty devices') OSError: out of pty devices _______________________ ExpectTestCase.test_timeout_none _______________________ self = def test_timeout_none(self): > p = pexpect.spawn('echo abcdef', timeout=None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:656: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_timeout_none ______________________ ExpectTestCase.test_unexpected_eof ______________________ self = def test_unexpected_eof (self): > p = pexpect.spawn('ls -l /bin') ^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:469: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_unexpected_eof ________________________ ExpectTestCase.test_waitnoecho ________________________ self = def test_waitnoecho(self): " Tests setecho(False) followed by waitnoecho() " > p = pexpect.spawn('cat', echo=False, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_waitnoecho _____________________ ExpectTestCase.test_waitnoecho_order _____________________ self = def test_waitnoecho_order(self): ''' This tests that we can wait on a child process to set echo mode. For example, this tests that we could wait for SSH to set ECHO False when asking of a password. This makes use of an external script echo_wait.py. ''' > p1 = pexpect.spawn('%s echo_wait.py' % self.PYTHONBIN) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_expect.py:283: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_waitnoecho_order ____________________ InteractTestCase.test_interact_escape _____________________ self = def test_interact_escape(self): " Ensure `escape_character' value exits interactive mode. " > p = pexpect.spawn(self.interact_py, timeout=5, env=self.env) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_interact.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_interact.InteractTestCase.test_interact_escape __________________ InteractTestCase.test_interact_escape_None __________________ self = def test_interact_escape_None(self): " Return only after Termination when `escape_character=None'. " > p = pexpect.spawn('{self.interact_py} --no-escape'.format(self=self), timeout=5, env=self.env) tests/test_interact.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_interact.InteractTestCase.test_interact_escape_None _________________ InteractTestCase.test_interact_exit_unicode __________________ self = def test_interact_exit_unicode(self): " Ensure subprocess receives utf8. " > p = pexpect.spawnu('{self.interact_py} --utf8'.format(self=self), timeout=5, env=self.env) tests/test_interact.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:860: in spawnu return spawn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_interact.InteractTestCase.test_interact_exit_unicode ________ IsAliveTestCase.test_expect_isalive_consistent_multiple_calls _________ self = def test_expect_isalive_consistent_multiple_calls (self): '''This tests that multiple calls to isalive() return same value. ''' > p = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ tests/test_isalive.py:113: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_expect_isalive_consistent_multiple_calls ____________ IsAliveTestCase.test_expect_isalive_dead_after_SIGHUP _____________ self = def test_expect_isalive_dead_after_SIGHUP(self): > p = pexpect.spawn('cat', timeout=5, ignore_sighup=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_isalive.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_expect_isalive_dead_after_SIGHUP ____________ IsAliveTestCase.test_expect_isalive_dead_after_SIGINT _____________ self = def test_expect_isalive_dead_after_SIGINT(self): > p = pexpect.spawn('cat', timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_isalive.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_expect_isalive_dead_after_SIGINT ____________ IsAliveTestCase.test_expect_isalive_dead_after_SIGKILL ____________ self = def test_expect_isalive_dead_after_SIGKILL(self): > p = pexpect.spawn('cat', timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_isalive.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_expect_isalive_dead_after_SIGKILL ______ IsAliveTestCase.test_expect_isalive_dead_after_normal_termination _______ self = def test_expect_isalive_dead_after_normal_termination (self): > p = pexpect.spawn('ls', timeout=15) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_isalive.py:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_expect_isalive_dead_after_normal_termination _______________________ IsAliveTestCase.test_expect_wait _______________________ self = def test_expect_wait(self): """Ensure consistency in wait() and isalive().""" > p = pexpect.spawn('sleep 1') ^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_isalive.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_expect_wait ______________ IsAliveTestCase.test_expect_wait_after_termination ______________ self = def test_expect_wait_after_termination(self): """Ensure wait on a process terminated by kill -9.""" > p = pexpect.spawn('sleep 3') ^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_isalive.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_expect_wait_after_termination ____________________ IsAliveTestCase.test_forced_terminate _____________________ self = def test_forced_terminate(self): > p = pexpect.spawn(self.PYTHONBIN, ['needs_kill.py']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_isalive.py:102: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_forced_terminate _______________________ IsAliveTestCase.test_signal_wait _______________________ self = def test_signal_wait(self): '''Test calling wait with a process terminated by a signal.''' if not hasattr(signal, 'SIGALRM'): return 'SKIP' > p = pexpect.spawn(self.PYTHONBIN, ['alarm_die.py']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_isalive.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_signal_wait _____________________________ TestCaseLog.test_log _____________________________ self = def test_log (self): log_message = 'This is a test.' filename = tempfile.mktemp() mylog = open(filename, 'wb') > p = pexpect.spawn('echo', [log_message]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_log.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_log.TestCaseLog.test_log ______________________ TestCaseLog.test_log_logfile_read _______________________ self = def test_log_logfile_read (self): log_message = 'This is a test.' filename = tempfile.mktemp() mylog = open(filename, 'wb') > p = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ tests/test_log.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_log.TestCaseLog.test_log_logfile_read ______________________ TestCaseLog.test_log_logfile_send _______________________ self = def test_log_logfile_send (self): log_message = b'This is a test.' filename = tempfile.mktemp() mylog = open (filename, 'wb') > p = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ tests/test_log.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_log.TestCaseLog.test_log_logfile_send ____________________ TestCaseLog.test_log_send_and_received ____________________ self = def test_log_send_and_received (self): '''The logfile should have the test message three time -- once for the data we sent. Once for the data that cat echos back as characters are typed. And once for the data that cat prints after we send a linefeed (sent by sendline). ''' log_message = 'This is a test.' filename = tempfile.mktemp() mylog = open(filename, 'wb') > p = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ tests/test_log.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_log.TestCaseLog.test_log_send_and_received _______________________ TestCaseMisc.test_bad_child_pid ________________________ self = def test_bad_child_pid(self): " assert bad condition error in isalive(). " expect_errmsg = re.escape("isalive() encountered condition where ") > child = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:212: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_bad_child_pid _____________________ TestCaseMisc.test_bad_type_in_expect _____________________ self = def test_bad_type_in_expect(self): " expect() does not accept dictionary arguments. " > child = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:274: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_bad_type_in_expect ____________________________ TestCaseMisc.test_cwd _____________________________ self = def test_cwd(self): " check keyword argument `cwd=' of pexpect.run() " tmp_dir = os.path.realpath(tempfile.gettempdir()) > default = pexpect.run('pwd') ^^^^^^^^^^^^^^^^^^ tests/test_misc.py:281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_cwd ____________________________ TestCaseMisc.test_eof _____________________________ self = def test_eof(self): " call to expect() after EOF is received raises pexpect.EOF " > child = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_eof ________________________ TestCaseMisc.test_exception_tb ________________________ self = def test_exception_tb(self): " test get_trace() filters away pexpect/__init__.py calls. " > p = pexpect.spawn('sleep 1') ^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:358: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_exception_tb __________________________ TestCaseMisc.test_isalive ___________________________ self = def test_isalive(self): " check isalive() before and after EOF. (True, False) " > child = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:266: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_isalive ___________________________ TestCaseMisc.test_isatty ___________________________ self = def test_isatty(self): " Test isatty() is True after spawning process on most platforms. " > child = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_isatty ________________________ TestCaseMisc.test_isatty_poll _________________________ self = def test_isatty_poll(self): " Test isatty() is True after spawning process on most platforms. " > child = pexpect.spawn('cat', use_poll=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_isatty_poll ____________________________ TestCaseMisc.test_iter ____________________________ self = def test_iter(self): " iterating over lines of spawn.__iter__(). " > child = pexpect.spawn('cat', echo=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:125: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_iter _____________________ TestCaseMisc.test_nonnative_pty_fork _____________________ self = def test_nonnative_pty_fork(self): " test forced self.__fork_pty() and __pty_make_controlling_tty " # given, class spawn_ourptyfork(pexpect.spawn): def _spawn(self, command, args=[], preexec_fn=None, dimensions=None): self.use_native_pty_fork = False pexpect.spawn._spawn(self, command, args, preexec_fn, dimensions) # exercise, > p = spawn_ourptyfork('cat', echo=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:348: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) tests/test_misc.py:344: in _spawn pexpect.spawn._spawn(self, command, args, preexec_fn, pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_nonnative_pty_fork ____________________________ TestCaseMisc.test_read ____________________________ self = def test_read(self): " Test spawn.read by calls of various size. " > child = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_read ____________ TestCaseMisc.test_read_after_close_raises_value_error _____________ self = def test_read_after_close_raises_value_error(self): " Calling read_nonblocking after close raises ValueError. " # as read_nonblocking underlies all other calls to read, # ValueError should be thrown for all forms of read. with self.assertRaises(ValueError): > p = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:245: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_read_after_close_raises_value_error _________________________ TestCaseMisc.test_read_poll __________________________ self = def test_read_poll(self): " Test spawn.read by calls of various size. " > child = pexpect.spawn('cat', use_poll=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_read_poll _____________________ TestCaseMisc.test_read_poll_timeout ______________________ self = def test_read_poll_timeout(self): " Test use_poll properly times out " > child = pexpect.spawn('sleep 5', use_poll=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_read_poll_timeout __________________________ TestCaseMisc.test_readline __________________________ self = def test_readline(self): " Test spawn.readline(). " # when argument 0 is sent, nothing is returned. # Otherwise the argument value is meaningless. > child = pexpect.spawn('cat', echo=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_readline _____________________ TestCaseMisc.test_readline_bin_echo ______________________ self = def test_readline_bin_echo(self): " Test spawn('echo'). " # given, > child = pexpect.spawn('echo', ['alpha', 'beta']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:99: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_readline_bin_echo _________________________ TestCaseMisc.test_readlines __________________________ self = def test_readlines(self): " reading all lines of spawn.readlines(). " > child = pexpect.spawn('cat', echo=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_readlines ___________________________ TestCaseMisc.test_sighup ___________________________ self = def test_sighup(self): " validate argument `ignore_sighup=True` and `ignore_sighup=False`. " getch = self.PYTHONBIN + ' getch.py' > child = pexpect.spawn(getch, ignore_sighup=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:191: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_sighup _________________________ TestCaseMisc.test_terminate __________________________ self = def test_terminate(self): " test force terminate always succeeds (SIGKILL). " > child = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:184: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_terminate ____________________________ TestCaseMisc.test_with ____________________________ self = def test_with(self): "spawn can be used as a context manager" > with pexpect.spawn(self.PYTHONBIN + ' echo_w_prompt.py') as p: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:174: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_with ___________________________ TestCaseMisc.test_write ____________________________ self = def test_write(self): " write a character and return it in return. " > child = pexpect.spawn('cat', echo=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_write _________________________ TestCaseMisc.test_writelines _________________________ self = def test_writelines(self): " spawn.writelines() " > child = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ tests/test_misc.py:157: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_writelines _______________________ PerformanceTestCase.test_100000 ________________________ self = def test_100000(self): if platform.python_implementation() == 'PyPy': raise unittest.SkipTest("This test fails on PyPy because of REPL differences") print() start_time = time.time() > self.plain_range (100000) tests/test_performance.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_performance.py:48: in plain_range e = pexpect.spawn(sys.executable, timeout=100) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_performance.PerformanceTestCase.test_100000 _________________ PerformanceTestCase.test_large_stdout_stream _________________ self = def test_large_stdout_stream(self): > e = pexpect.spawn('openssl rand -base64 {}'.format(1024*1024*25), searchwindowsize=1000) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_performance.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_performance.PerformanceTestCase.test_large_stdout_stream ____________________ PxsshTestCase.test_connection_refused _____________________ self = def test_connection_refused(self): ssh = pxssh.pxssh() try: > ssh.login('noserver', 'me', password='s3cret') /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_pxssh.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pxssh.py:401: in login spawn._spawn(self, cmd) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_pxssh.PxsshTestCase.test_connection_refused ______________________ PxsshTestCase.test_custom_ssh_cmd _______________________ self = def test_custom_ssh_cmd(self): try: ssh = pxssh.pxssh() cipher_string = '-c aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,' \ + 'aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,' \ + 'aes256-cbc,arcfour' > result = ssh.login('server', 'me', password='s3cret', cmd='ssh ' + cipher_string + ' -2') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_pxssh.py:247: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pxssh.py:401: in login spawn._spawn(self, cmd) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_pxssh.PxsshTestCase.test_custom_ssh_cmd ___________________ PxsshTestCase.test_failed_custom_ssh_cmd ___________________ self = def test_failed_custom_ssh_cmd(self): try: ssh = pxssh.pxssh() cipher_string = '-c invalid_cipher' > result = ssh.login('server', 'me', password='s3cret', cmd='ssh ' + cipher_string + ' -2') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_pxssh.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pxssh.py:401: in login spawn._spawn(self, cmd) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_pxssh.PxsshTestCase.test_failed_custom_ssh_cmd _________________ PxsshTestCase.test_failed_set_unique_prompt __________________ self = def test_failed_set_unique_prompt(self): ssh = pxssh.pxssh() ssh.set_unique_prompt = lambda: False try: > ssh.login('server', 'me', password='s3cret', auto_prompt_reset=True) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_pxssh.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pxssh.py:401: in login spawn._spawn(self, cmd) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_pxssh.PxsshTestCase.test_failed_set_unique_prompt _________________________ PxsshTestCase.test_fake_ssh __________________________ self = def test_fake_ssh(self): ssh = pxssh.pxssh() #ssh.logfile_read = sys.stdout # DEBUG > ssh.login('server', 'me', password='s3cret') /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_pxssh.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pxssh.py:401: in login spawn._spawn(self, cmd) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_pxssh.PxsshTestCase.test_fake_ssh ________________________ PxsshTestCase.test_login_bash _________________________ self = def test_login_bash(self): ssh = pxssh.pxssh() > result = ssh.login('server bash', 'me', password='s3cret') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_pxssh.py:281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pxssh.py:401: in login spawn._spawn(self, cmd) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_pxssh.PxsshTestCase.test_login_bash ________________________ PxsshTestCase.test_login_tcsh _________________________ self = def test_login_tcsh(self): ssh = pxssh.pxssh() > result = ssh.login('server tcsh', 'me', password='s3cret') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_pxssh.py:297: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pxssh.py:401: in login spawn._spawn(self, cmd) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_pxssh.PxsshTestCase.test_login_tcsh _________________________ PxsshTestCase.test_login_zsh _________________________ self = def test_login_zsh(self): ssh = pxssh.pxssh() > result = ssh.login('server zsh', 'me', password='s3cret') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_pxssh.py:289: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pxssh.py:401: in login spawn._spawn(self, cmd) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_pxssh.PxsshTestCase.test_login_zsh _________________________ PxsshTestCase.test_wrong_pw __________________________ self = def test_wrong_pw(self): ssh = pxssh.pxssh() try: > ssh.login('server', 'me', password='wr0ng') /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_pxssh.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pxssh.py:401: in login spawn._spawn(self, cmd) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_pxssh.PxsshTestCase.test_wrong_pw _________________________ TestCaseMisc.test_str_spawn __________________________ self = def test_str_spawn(self): """ Exercise spawn.__str__() """ # given, > p = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_repr.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_repr.TestCaseMisc.test_str_spawn _________________________ TestCaseMisc.test_str_spawnu _________________________ self = def test_str_spawnu(self): """ Exercise spawnu.__str__() """ # given, > p = pexpect.spawnu('cat') ^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_repr.py:12: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:860: in spawnu return spawn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_repr.TestCaseMisc.test_str_spawnu ___________________________ RunFuncTestCase.test_run ___________________________ self = def test_run(self): the_old_way = subprocess.Popen( args=['uname', '-m', '-n'], stdout=subprocess.PIPE ).communicate()[0].rstrip() > (the_new_way, exitstatus) = self.runfunc( 'uname -m -n', withexitstatus=1) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run ___________________ RunFuncTestCase.test_run_bad_exitstatus ____________________ self = def test_run_bad_exitstatus(self): > (the_new_way, exitstatus) = self.runfunc( 'ls -l /najoeufhdnzkxjd', withexitstatus=1) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run_bad_exitstatus ______________________ RunFuncTestCase.test_run_callback _______________________ self = def test_run_callback(self): # TODO it seems like this test could block forever if run fails... events = {pexpect.TIMEOUT: timeout_callback} > self.runfunc("cat", timeout=1, events=events) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run_callback __________________ RunFuncTestCase.test_run_event_as_function __________________ self = def test_run_event_as_function(self): events = [ ('GO:', function_events_callback) ] > (data, exitstatus) = pexpect.run( 'bash --norc', withexitstatus=True, events=events, env=self.runenv, timeout=10) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:116: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run_event_as_function ___________________ RunFuncTestCase.test_run_event_as_method ___________________ self = def test_run_event_as_method(self): events = [ ('GO:', self._method_events_callback) ] > (data, exitstatus) = pexpect.run( 'bash --norc', withexitstatus=True, events=events, env=self.runenv, timeout=10) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run_event_as_method ___________________ RunFuncTestCase.test_run_event_as_string ___________________ self = def test_run_event_as_string(self): events = [ # second match on 'abc', echo 'def' ('abc\r\n.*GO:', 'echo "def"\n'), # final match on 'def': exit ('def\r\n.*GO:', 'exit\n'), # first match on 'GO:' prompt, echo 'abc' ('GO:', 'echo "abc"\n') ] > (data, exitstatus) = pexpect.run( 'bash --norc', withexitstatus=True, events=events, env=self.runenv, timeout=10) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run_event_as_string ___________________ RunFuncTestCase.test_run_event_typeerror ___________________ self = def test_run_event_typeerror(self): events = [('GO:', -1)] with self.assertRaises(TypeError): > pexpect.run('bash --norc', withexitstatus=True, events=events, env=self.runenv, timeout=10) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run_event_typeerror ________________________ RunFuncTestCase.test_run_exit _________________________ self = def test_run_exit(self): > (data, exitstatus) = self.runfunc(sys.executable + ' exit1.py', withexitstatus=1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run_exit _______________________ RunUnicodeFuncTestCase.test_run ________________________ self = def test_run(self): the_old_way = subprocess.Popen( args=['uname', '-m', '-n'], stdout=subprocess.PIPE ).communicate()[0].rstrip() > (the_new_way, exitstatus) = self.runfunc( 'uname -m -n', withexitstatus=1) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:155: in runu return run(command, timeout=timeout, withexitstatus=withexitstatus, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run ________________ RunUnicodeFuncTestCase.test_run_bad_exitstatus ________________ self = def test_run_bad_exitstatus(self): > (the_new_way, exitstatus) = self.runfunc( 'ls -l /najoeufhdnzkxjd', withexitstatus=1) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:155: in runu return run(command, timeout=timeout, withexitstatus=withexitstatus, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_bad_exitstatus ___________________ RunUnicodeFuncTestCase.test_run_callback ___________________ self = def test_run_callback(self): # TODO it seems like this test could block forever if run fails... events = {pexpect.TIMEOUT: timeout_callback} > self.runfunc("cat", timeout=1, events=events) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:155: in runu return run(command, timeout=timeout, withexitstatus=withexitstatus, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_callback ______________ RunUnicodeFuncTestCase.test_run_event_as_function _______________ self = def test_run_event_as_function(self): events = [ ('GO:', function_events_callback) ] > (data, exitstatus) = pexpect.run( 'bash --norc', withexitstatus=True, events=events, env=self.runenv, timeout=10) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:116: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_event_as_function _______________ RunUnicodeFuncTestCase.test_run_event_as_method ________________ self = def test_run_event_as_method(self): events = [ ('GO:', self._method_events_callback) ] > (data, exitstatus) = pexpect.run( 'bash --norc', withexitstatus=True, events=events, env=self.runenv, timeout=10) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_event_as_method _______________ RunUnicodeFuncTestCase.test_run_event_as_string ________________ self = def test_run_event_as_string(self): events = [ # second match on 'abc', echo 'def' ('abc\r\n.*GO:', 'echo "def"\n'), # final match on 'def': exit ('def\r\n.*GO:', 'exit\n'), # first match on 'GO:' prompt, echo 'abc' ('GO:', 'echo "abc"\n') ] > (data, exitstatus) = pexpect.run( 'bash --norc', withexitstatus=True, events=events, env=self.runenv, timeout=10) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_event_as_string _______________ RunUnicodeFuncTestCase.test_run_event_typeerror ________________ self = def test_run_event_typeerror(self): events = [('GO:', -1)] with self.assertRaises(TypeError): > pexpect.run('bash --norc', withexitstatus=True, events=events, env=self.runenv, timeout=10) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_event_typeerror _____________________ RunUnicodeFuncTestCase.test_run_exit _____________________ self = def test_run_exit(self): > (data, exitstatus) = self.runfunc(sys.executable + ' exit1.py', withexitstatus=1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:155: in runu return run(command, timeout=timeout, withexitstatus=withexitstatus, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_exit ___________________ RunUnicodeFuncTestCase.test_run_unicode ____________________ self = def test_run_unicode(self): if pexpect.PY3: char = chr(254) # þ pattern = '' else: char = unichr(254) # analysis:ignore pattern = ''.decode('ascii') def callback(values): if values['event_count'] == 0: return char + '\n' else: return True # Stop the child process > output = pexpect.runu(self.PYTHONBIN + ' echo_w_prompt.py', env={'PYTHONIOENCODING': 'utf-8'}, events={pattern: callback}) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_run.py:184: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:155: in runu return run(command, timeout=timeout, withexitstatus=withexitstatus, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/run.py:99: in run child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_unicode ________________________ ExpectTestCase.test_fd_isalive ________________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket.ExpectTestCase.test_fd_isalive tests.test_socket.ExpectTestCase.test_fd_isalive _____________________ ExpectTestCase.test_fd_isalive_poll ______________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket.ExpectTestCase.test_fd_isalive_poll tests.test_socket.ExpectTestCase.test_fd_isalive_poll ________________________ ExpectTestCase.test_fd_isatty _________________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket.ExpectTestCase.test_fd_isatty tests.test_socket.ExpectTestCase.test_fd_isatty ______________________ ExpectTestCase.test_fd_isatty_poll ______________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket.ExpectTestCase.test_fd_isatty_poll tests.test_socket.ExpectTestCase.test_fd_isatty_poll _________________________ ExpectTestCase.test_maxread __________________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket.ExpectTestCase.test_maxread tests.test_socket.ExpectTestCase.test_maxread ___________________ ExpectTestCase.test_multiple_interrupts ____________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket.ExpectTestCase.test_multiple_interrupts tests.test_socket.ExpectTestCase.test_multiple_interrupts __________________________ ExpectTestCase.test_socket __________________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket.ExpectTestCase.test_socket tests.test_socket.ExpectTestCase.test_socket ____________________ ExpectTestCase.test_socket_with_write _____________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket.ExpectTestCase.test_socket_with_write tests.test_socket.ExpectTestCase.test_socket_with_write _________________________ ExpectTestCase.test_timeout __________________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket.ExpectTestCase.test_timeout tests.test_socket.ExpectTestCase.test_timeout ________________________ ExpectTestCase.test_fd_isalive ________________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket_fd.ExpectTestCase.test_fd_isalive tests.test_socket_fd.ExpectTestCase.test_fd_isalive _____________________ ExpectTestCase.test_fd_isalive_poll ______________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket_fd.ExpectTestCase.test_fd_isalive_poll tests.test_socket_fd.ExpectTestCase.test_fd_isalive_poll ________________________ ExpectTestCase.test_fd_isatty _________________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket_fd.ExpectTestCase.test_fd_isatty tests.test_socket_fd.ExpectTestCase.test_fd_isatty ______________________ ExpectTestCase.test_fd_isatty_poll ______________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket_fd.ExpectTestCase.test_fd_isatty_poll tests.test_socket_fd.ExpectTestCase.test_fd_isatty_poll _________________________ ExpectTestCase.test_fileobj __________________________ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: in setUp self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket_fd.ExpectTestCase.test_fileobj tests.test_socket_fd.ExpectTestCase.test_fileobj _________________________ ExpectTestCase.test_maxread __________________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket_fd.ExpectTestCase.test_maxread tests.test_socket_fd.ExpectTestCase.test_maxread ___________________ ExpectTestCase.test_multiple_interrupts ____________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket_fd.ExpectTestCase.test_multiple_interrupts tests.test_socket_fd.ExpectTestCase.test_multiple_interrupts ___________________ ExpectTestCase.test_not_file_descriptor ____________________ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: in setUp self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket_fd.ExpectTestCase.test_not_file_descriptor tests.test_socket_fd.ExpectTestCase.test_not_file_descriptor _________________________ ExpectTestCase.test_not_int __________________________ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: in setUp self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket_fd.ExpectTestCase.test_not_int tests.test_socket_fd.ExpectTestCase.test_not_int __________________________ ExpectTestCase.test_socket __________________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket_fd.ExpectTestCase.test_socket tests.test_socket_fd.ExpectTestCase.test_socket ____________________ ExpectTestCase.test_socket_with_write _____________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket_fd.ExpectTestCase.test_socket_with_write tests.test_socket_fd.ExpectTestCase.test_socket_with_write _________________________ ExpectTestCase.test_timeout __________________________ self = def setUp(self): print(self.id()) PexpectTestCase.PexpectTestCase.setUp(self) self.af = socket.AF_INET self.host = '127.0.0.1' try: socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: try: socket.socket(socket.AF_INET6, socket.SOCK_STREAM) self.af = socket.AF_INET6 self.host = '::1' except socket.error: pass self.port = 49152 + 10000 self.motd = b"""\ ------------------------------------------------------------------------------ * Welcome to the SOCKET UNIT TEST code! * ------------------------------------------------------------------------------ * * * This unit test code is our best effort at testing the ability of the * * pexpect library to handle sockets. We need some text to test buffer size * * handling. * * * * A page is 1024 bytes or 1K. 80 x 24 = 1920. So a standard terminal window * * contains more than one page. We actually want more than a page for our * * tests. * * * * This is the twelfth line, and we need 24. So we need a few more paragraphs.* * We can keep them short and just put lines between them. * * * * The 80 x 24 terminal size comes from the ancient past when computers were * * only able to display text in cuneiform writing. * * * * The cunieform writing system used the edge of a reed to make marks on clay * * tablets. * * * * It was the forerunner of the style of handwriting used by doctors to write * * prescriptions. Thus the name: pre (before) script (writing) ion (charged * * particle). * ------------------------------------------------------------------------------ """.replace(b'\n', b'\n\r') + b"\r\n" self.prompt1 = b'Press Return to continue:' self.prompt2 = b'Rate this unit test>' self.prompt3 = b'Press X to exit:' self.enter = b'\r\n' self.exit = b'X\r\n' > self.server_up = multiprocessing.Event() ^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_socket.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/multiprocessing/context.py:93: in Event return Event(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:331: in __init__ self._cond = ctx.Condition(ctx.Lock()) ^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/context.py:68: in Lock return Lock(ctx=self.get_context()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/multiprocessing/synchronize.py:169: in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kind = 1, value = 1, maxvalue = 1 def __init__(self, kind, value, maxvalue, *, ctx): if ctx is None: ctx = context._default_context.get_context() self._is_fork_ctx = ctx.get_start_method() == 'fork' unlink_now = sys.platform == 'win32' or self._is_fork_ctx for i in range(100): try: > sl = self._semlock = _multiprocessing.SemLock( kind, value, maxvalue, self._make_name(), unlink_now) E PermissionError: [Errno 13] Permission denied /usr/lib/python3.12/multiprocessing/synchronize.py:57: PermissionError ----------------------------- Captured stdout call ----------------------------- tests.test_socket_fd.ExpectTestCase.test_timeout tests.test_socket_fd.ExpectTestCase.test_timeout __________________ Exp_TimeoutTestCase.test_correctStackTrace __________________ self = def test_correctStackTrace (self): '''Verify that the stack trace returned with a TIMEOUT instance correctly handles function calls.''' def nestedFunction (spawnInstance): spawnInstance.expect("junk", timeout=3) try: > p = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_timeout_pattern.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_timeout_pattern.Exp_TimeoutTestCase.test_correctStackTrace ________________ Exp_TimeoutTestCase.test_exp_timeout_notThrown ________________ self = def test_exp_timeout_notThrown (self): '''Verify that a TIMEOUT is not thrown when we match what we expect.''' try: > p = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_timeout_pattern.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_timeout_pattern.Exp_TimeoutTestCase.test_exp_timeout_notThrown __________________ Exp_TimeoutTestCase.test_pattern_printout ___________________ self = def test_pattern_printout (self): '''Verify that a TIMEOUT returns the proper patterns it is trying to match against. Make sure it is returning the pattern from the correct call.''' try: > p = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_timeout_pattern.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_timeout_pattern.Exp_TimeoutTestCase.test_pattern_printout __________________ Exp_TimeoutTestCase.test_stacktraceMunging __________________ self = def test_stacktraceMunging (self): '''Verify that the stack trace returned with a TIMEOUT instance does not contain references to pexpect.''' try: > p = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_timeout_pattern.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_timeout_pattern.Exp_TimeoutTestCase.test_stacktraceMunging ________________________ UnicodeTests.test_expect_basic ________________________ self = def test_expect_basic (self): > p = pexpect.spawnu('cat') ^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_unicode.py:19: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:860: in spawnu return spawn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_expect_basic _____________________ UnicodeTests.test_expect_echo_exact ______________________ self = def test_expect_echo_exact (self): '''Like test_expect_echo(), but using expect_exact(). ''' > p = pexpect.spawnu('cat', timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_unicode.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:860: in spawnu return spawn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_expect_echo_exact _____________________ UnicodeTests.test_expect_exact_basic _____________________ self = def test_expect_exact_basic (self): > p = pexpect.spawnu('cat') ^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_unicode.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:860: in spawnu return spawn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_expect_exact_basic ___________________ UnicodeTests.test_expect_setecho_toggle ____________________ self = def test_expect_setecho_toggle(self): '''This tests that echo may be toggled off. ''' > p = pexpect.spawnu('cat', timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_unicode.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:860: in spawnu return spawn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_expect_setecho_toggle ________________ UnicodeTests.test_expect_setecho_toggle_exact _________________ self = def test_expect_setecho_toggle_exact(self): > p = pexpect.spawnu('cat', timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_unicode.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:860: in spawnu return spawn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_expect_setecho_toggle_exact ________________________ UnicodeTests.test_log_unicode _________________________ self = def test_log_unicode(self): msg = "abcΩ÷" filename_send = tempfile.mktemp() filename_read = tempfile.mktemp() > p = pexpect.spawnu('cat') ^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_unicode.py:105: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:860: in spawnu return spawn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_log_unicode _____________________ UnicodeTests.test_readline_bin_echo ______________________ self = def test_readline_bin_echo(self): # Test using readline() with spawnu objects. pexpect 3.2 had threw # a TypeError when concatenating a bytestring to a unicode type. # given, > child = pexpect.spawnu('echo', ['input', ]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_unicode.py:174: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:860: in spawnu return spawn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_readline_bin_echo _________________ UnicodeTests.test_spawn_expect_ascii_unicode _________________ self = def test_spawn_expect_ascii_unicode(self): # A bytes-based spawn should be able to handle ASCII-only unicode, for # backwards compatibility. > p = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_unicode.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_spawn_expect_ascii_unicode _____________________ UnicodeTests.test_spawn_send_unicode _____________________ self = def test_spawn_send_unicode(self): # A bytes-based spawn should be able to send arbitrary unicode > p = pexpect.spawn('cat') ^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_unicode.py:153: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_spawn_send_unicode ___________________ UnicodeTests.test_spawn_utf8_incomplete ____________________ self = def test_spawn_utf8_incomplete(self): # This test case ensures correct incremental decoding, which # otherwise fails when the stream inspected by os.read() # does not align exactly at a utf-8 multibyte boundary: # UnicodeDecodeError: 'utf8' codec can't decode byte 0xe2 in # position 0: unexpected end of data > p = pexpect.spawnu('cat', maxread=1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_unicode.py:164: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:860: in spawnu return spawn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_spawn_utf8_incomplete ________________________ UnicodeTests.test_unicode_argv ________________________ self = def test_unicode_argv(self): """ Ensure a program can be executed with unicode arguments. """ > p = pexpect.spawn(u'echo ǝpoɔıun', timeout=5, encoding='utf8') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_unicode.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_unicode_argv _____________________ TestCaseWinsize.test_initial_winsize _____________________ self = def test_initial_winsize(self): """ Assert initial window dimension size (24, 80). """ > p = pexpect.spawn('{self.PYTHONBIN} sigwinch_report.py' .format(self=self), timeout=3) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_winsize.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_winsize.TestCaseWinsize.test_initial_winsize ______________ TestCaseWinsize.test_initial_winsize_by_dimension _______________ self = def test_initial_winsize_by_dimension(self): """ Assert user-parameter window dimension size is initial. """ > p = pexpect.spawn('{self.PYTHONBIN} sigwinch_report.py' .format(self=self), timeout=3, dimensions=(40, 100)) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_winsize.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_winsize.TestCaseWinsize.test_initial_winsize_by_dimension _______________________ TestCaseWinsize.test_setwinsize ________________________ self = def test_setwinsize(self): """ Ensure method .setwinsize() sends signal caught by child. """ > p = pexpect.spawn('{self.PYTHONBIN} sigwinch_report.py' .format(self=self), timeout=3) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/tests/test_winsize.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.12/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() ^^^^^^^^^^ /usr/lib/python3.12/pty.py:107: in fork master_fd, slave_fd = openpty() ^^^^^^^^^ /usr/lib/python3.12/pty.py:34: in openpty master_fd, slave_name = _open_terminal() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.12/pty.py:67: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_winsize.TestCaseWinsize.test_setwinsize =============================== warnings summary =============================== pexpect/ANSI.py:29 /home/udu/aports/main/py3-pexpect/src/pexpect-4.9/pexpect/ANSI.py:29: UserWarning: pexpect.screen and pexpect.ANSI are deprecated. We recommend using pyte to emulate a terminal screen: https://pypi.python.org/pypi/pyte from . import screen tests/test_pxssh.py: 9 warnings tests/test_repr.py: 2 warnings tests/test_run.py: 17 warnings tests/test_timeout_pattern.py: 4 warnings tests/test_unicode.py: 11 warnings tests/test_winsize.py: 3 warnings /usr/lib/python3.12/pty.py:95: DeprecationWarning: This process (pid=3782649) is multi-threaded, use of forkpty() may lead to deadlocks in the child. pid, fd = os.forkpty() -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_async.py::AsyncTests::test_async_and_gc - OSError: out of p... FAILED tests/test_async.py::AsyncTests::test_async_and_sync - OSError: out of... FAILED tests/test_async.py::AsyncTests::test_async_replwrap - OSError: out of... FAILED tests/test_async.py::AsyncTests::test_async_utf8 - OSError: out of pty... FAILED tests/test_async.py::AsyncTests::test_eof - OSError: out of pty devices FAILED tests/test_async.py::AsyncTests::test_expect_exact - OSError: out of p... FAILED tests/test_async.py::AsyncTests::test_simple_expect - OSError: out of ... FAILED tests/test_async.py::AsyncTests::test_timeout - OSError: out of pty de... FAILED tests/test_constructor.py::TestCaseConstructor::test_constructor - OSE... FAILED tests/test_constructor.py::TestCaseConstructor::test_named_parameters FAILED tests/test_ctrl_chars.py::TestCtrlChars::test_bad_sendcontrol_chars - ... FAILED tests/test_ctrl_chars.py::TestCtrlChars::test_control_chars - OSError:... FAILED tests/test_ctrl_chars.py::TestCtrlChars::test_sendcontrol - OSError: o... FAILED tests/test_ctrl_chars.py::TestCtrlChars::test_sendeof - OSError: out o... FAILED tests/test_ctrl_chars.py::TestCtrlChars::test_sendintr - OSError: out ... FAILED tests/test_delay.py::TestCaseDelay::test_delayafterread - OSError: out... FAILED tests/test_delay.py::TestCaseDelay::test_delaybeforesend - OSError: ou... FAILED tests/test_destructor.py::TestCaseDestructor::test_destructor - OSErro... FAILED tests/test_dotall.py::TestCaseDotall::test_dotall - OSError: out of pt... FAILED tests/test_dotall.py::TestCaseDotall::test_precompiled - OSError: out ... FAILED tests/test_env.py::TestCaseEnv::test_run_uses_env - OSError: out of pt... FAILED tests/test_env.py::TestCaseEnv::test_run_uses_env_path - OSError: out ... FAILED tests/test_env.py::TestCaseEnv::test_run_uses_env_path_over_path - OSE... FAILED tests/test_env.py::TestCaseEnv::test_spawn_uses_env - OSError: out of ... FAILED tests/test_expect.py::ExpectTestCase::test_bad_arg - OSError: out of p... FAILED tests/test_expect.py::ExpectTestCase::test_before_across_chunks - OSEr... FAILED tests/test_expect.py::ExpectTestCase::test_before_after - OSError: out... FAILED tests/test_expect.py::ExpectTestCase::test_before_after_exact - OSErro... FAILED tests/test_expect.py::ExpectTestCase::test_before_after_timeout - OSEr... FAILED tests/test_expect.py::ExpectTestCase::test_buffer_interface - OSError:... FAILED tests/test_expect.py::ExpectTestCase::test_coerce_expect_re_enc_ascii FAILED tests/test_expect.py::ExpectTestCase::test_coerce_expect_re_enc_none FAILED tests/test_expect.py::ExpectTestCase::test_coerce_expect_re_enc_utf8 FAILED tests/test_expect.py::ExpectTestCase::test_expect - OSError: out of pt... FAILED tests/test_expect.py::ExpectTestCase::test_expect_basic - OSError: out... FAILED tests/test_expect.py::ExpectTestCase::test_expect_echo - OSError: out ... FAILED tests/test_expect.py::ExpectTestCase::test_expect_echo_exact - OSError... FAILED tests/test_expect.py::ExpectTestCase::test_expect_eof - OSError: out o... FAILED tests/test_expect.py::ExpectTestCase::test_expect_exact - OSError: out... FAILED tests/test_expect.py::ExpectTestCase::test_expect_exact_basic - OSErro... FAILED tests/test_expect.py::ExpectTestCase::test_expect_ignore_case - OSErro... FAILED tests/test_expect.py::ExpectTestCase::test_expect_ignore_case_flag - O... FAILED tests/test_expect.py::ExpectTestCase::test_expect_index - OSError: out... FAILED tests/test_expect.py::ExpectTestCase::test_expect_index_exact - OSErro... FAILED tests/test_expect.py::ExpectTestCase::test_expect_order - OSError: out... FAILED tests/test_expect.py::ExpectTestCase::test_expect_order_exact - OSErro... FAILED tests/test_expect.py::ExpectTestCase::test_expect_regex_enc_none - OSE... FAILED tests/test_expect.py::ExpectTestCase::test_expect_regex_enc_utf8 - OSE... FAILED tests/test_expect.py::ExpectTestCase::test_expect_setecho_off - OSErro... FAILED tests/test_expect.py::ExpectTestCase::test_expect_setecho_off_exact - ... FAILED tests/test_expect.py::ExpectTestCase::test_expect_timeout - OSError: o... FAILED tests/test_expect.py::ExpectTestCase::test_greed - OSError: out of pty... FAILED tests/test_expect.py::ExpectTestCase::test_greed_exact - OSError: out ... FAILED tests/test_expect.py::ExpectTestCase::test_increasing_searchwindowsize FAILED tests/test_expect.py::ExpectTestCase::test_ordering - OSError: out of ... FAILED tests/test_expect.py::ExpectTestCase::test_ordering_exact - OSError: o... FAILED tests/test_expect.py::ExpectTestCase::test_searchwindowsize - OSError:... FAILED tests/test_expect.py::ExpectTestCase::test_signal_handling - OSError: ... FAILED tests/test_expect.py::ExpectTestCase::test_stdin_closed - AssertionErr... FAILED tests/test_expect.py::ExpectTestCase::test_stdin_stdout_closed - Asser... FAILED tests/test_expect.py::ExpectTestCase::test_timeout_none - OSError: out... FAILED tests/test_expect.py::ExpectTestCase::test_unexpected_eof - OSError: o... FAILED tests/test_expect.py::ExpectTestCase::test_waitnoecho - OSError: out o... FAILED tests/test_expect.py::ExpectTestCase::test_waitnoecho_order - OSError:... FAILED tests/test_interact.py::InteractTestCase::test_interact_escape - OSErr... FAILED tests/test_interact.py::InteractTestCase::test_interact_escape_None - ... FAILED tests/test_interact.py::InteractTestCase::test_interact_exit_unicode FAILED tests/test_isalive.py::IsAliveTestCase::test_expect_isalive_consistent_multiple_calls FAILED tests/test_isalive.py::IsAliveTestCase::test_expect_isalive_dead_after_SIGHUP FAILED tests/test_isalive.py::IsAliveTestCase::test_expect_isalive_dead_after_SIGINT FAILED tests/test_isalive.py::IsAliveTestCase::test_expect_isalive_dead_after_SIGKILL FAILED tests/test_isalive.py::IsAliveTestCase::test_expect_isalive_dead_after_normal_termination FAILED tests/test_isalive.py::IsAliveTestCase::test_expect_wait - OSError: ou... FAILED tests/test_isalive.py::IsAliveTestCase::test_expect_wait_after_termination FAILED tests/test_isalive.py::IsAliveTestCase::test_forced_terminate - OSErro... FAILED tests/test_isalive.py::IsAliveTestCase::test_signal_wait - OSError: ou... FAILED tests/test_log.py::TestCaseLog::test_log - OSError: out of pty devices FAILED tests/test_log.py::TestCaseLog::test_log_logfile_read - OSError: out o... FAILED tests/test_log.py::TestCaseLog::test_log_logfile_send - OSError: out o... FAILED tests/test_log.py::TestCaseLog::test_log_send_and_received - OSError: ... FAILED tests/test_misc.py::TestCaseMisc::test_bad_child_pid - OSError: out of... FAILED tests/test_misc.py::TestCaseMisc::test_bad_type_in_expect - OSError: o... FAILED tests/test_misc.py::TestCaseMisc::test_cwd - OSError: out of pty devices FAILED tests/test_misc.py::TestCaseMisc::test_eof - OSError: out of pty devices FAILED tests/test_misc.py::TestCaseMisc::test_exception_tb - OSError: out of ... FAILED tests/test_misc.py::TestCaseMisc::test_isalive - OSError: out of pty d... FAILED tests/test_misc.py::TestCaseMisc::test_isatty - OSError: out of pty de... FAILED tests/test_misc.py::TestCaseMisc::test_isatty_poll - OSError: out of p... FAILED tests/test_misc.py::TestCaseMisc::test_iter - OSError: out of pty devices FAILED tests/test_misc.py::TestCaseMisc::test_nonnative_pty_fork - OSError: o... FAILED tests/test_misc.py::TestCaseMisc::test_read - OSError: out of pty devices FAILED tests/test_misc.py::TestCaseMisc::test_read_after_close_raises_value_error FAILED tests/test_misc.py::TestCaseMisc::test_read_poll - OSError: out of pty... FAILED tests/test_misc.py::TestCaseMisc::test_read_poll_timeout - OSError: ou... FAILED tests/test_misc.py::TestCaseMisc::test_readline - OSError: out of pty ... FAILED tests/test_misc.py::TestCaseMisc::test_readline_bin_echo - OSError: ou... FAILED tests/test_misc.py::TestCaseMisc::test_readlines - OSError: out of pty... FAILED tests/test_misc.py::TestCaseMisc::test_sighup - OSError: out of pty de... FAILED tests/test_misc.py::TestCaseMisc::test_terminate - OSError: out of pty... FAILED tests/test_misc.py::TestCaseMisc::test_with - OSError: out of pty devices FAILED tests/test_misc.py::TestCaseMisc::test_write - OSError: out of pty dev... FAILED tests/test_misc.py::TestCaseMisc::test_writelines - OSError: out of pt... FAILED tests/test_performance.py::PerformanceTestCase::test_100000 - OSError:... FAILED tests/test_performance.py::PerformanceTestCase::test_large_stdout_stream FAILED tests/test_pxssh.py::PxsshTestCase::test_connection_refused - OSError:... FAILED tests/test_pxssh.py::PxsshTestCase::test_custom_ssh_cmd - OSError: out... FAILED tests/test_pxssh.py::PxsshTestCase::test_failed_custom_ssh_cmd - OSErr... FAILED tests/test_pxssh.py::PxsshTestCase::test_failed_set_unique_prompt - OS... FAILED tests/test_pxssh.py::PxsshTestCase::test_fake_ssh - OSError: out of pt... FAILED tests/test_pxssh.py::PxsshTestCase::test_login_bash - OSError: out of ... FAILED tests/test_pxssh.py::PxsshTestCase::test_login_tcsh - OSError: out of ... FAILED tests/test_pxssh.py::PxsshTestCase::test_login_zsh - OSError: out of p... FAILED tests/test_pxssh.py::PxsshTestCase::test_wrong_pw - OSError: out of pt... FAILED tests/test_repr.py::TestCaseMisc::test_str_spawn - OSError: out of pty... FAILED tests/test_repr.py::TestCaseMisc::test_str_spawnu - OSError: out of pt... FAILED tests/test_run.py::RunFuncTestCase::test_run - OSError: out of pty dev... FAILED tests/test_run.py::RunFuncTestCase::test_run_bad_exitstatus - OSError:... FAILED tests/test_run.py::RunFuncTestCase::test_run_callback - OSError: out o... FAILED tests/test_run.py::RunFuncTestCase::test_run_event_as_function - OSErr... FAILED tests/test_run.py::RunFuncTestCase::test_run_event_as_method - OSError... FAILED tests/test_run.py::RunFuncTestCase::test_run_event_as_string - OSError... FAILED tests/test_run.py::RunFuncTestCase::test_run_event_typeerror - OSError... FAILED tests/test_run.py::RunFuncTestCase::test_run_exit - OSError: out of pt... FAILED tests/test_run.py::RunUnicodeFuncTestCase::test_run - OSError: out of ... FAILED tests/test_run.py::RunUnicodeFuncTestCase::test_run_bad_exitstatus - O... FAILED tests/test_run.py::RunUnicodeFuncTestCase::test_run_callback - OSError... FAILED tests/test_run.py::RunUnicodeFuncTestCase::test_run_event_as_function FAILED tests/test_run.py::RunUnicodeFuncTestCase::test_run_event_as_method - ... FAILED tests/test_run.py::RunUnicodeFuncTestCase::test_run_event_as_string - ... FAILED tests/test_run.py::RunUnicodeFuncTestCase::test_run_event_typeerror - ... FAILED tests/test_run.py::RunUnicodeFuncTestCase::test_run_exit - OSError: ou... FAILED tests/test_run.py::RunUnicodeFuncTestCase::test_run_unicode - OSError:... FAILED tests/test_socket.py::ExpectTestCase::test_fd_isalive - PermissionErro... FAILED tests/test_socket.py::ExpectTestCase::test_fd_isalive_poll - Permissio... FAILED tests/test_socket.py::ExpectTestCase::test_fd_isatty - PermissionError... FAILED tests/test_socket.py::ExpectTestCase::test_fd_isatty_poll - Permission... FAILED tests/test_socket.py::ExpectTestCase::test_maxread - PermissionError: ... FAILED tests/test_socket.py::ExpectTestCase::test_multiple_interrupts - Permi... FAILED tests/test_socket.py::ExpectTestCase::test_socket - PermissionError: [... FAILED tests/test_socket.py::ExpectTestCase::test_socket_with_write - Permiss... FAILED tests/test_socket.py::ExpectTestCase::test_timeout - PermissionError: ... FAILED tests/test_socket_fd.py::ExpectTestCase::test_fd_isalive - PermissionE... FAILED tests/test_socket_fd.py::ExpectTestCase::test_fd_isalive_poll - Permis... FAILED tests/test_socket_fd.py::ExpectTestCase::test_fd_isatty - PermissionEr... FAILED tests/test_socket_fd.py::ExpectTestCase::test_fd_isatty_poll - Permiss... FAILED tests/test_socket_fd.py::ExpectTestCase::test_fileobj - PermissionErro... FAILED tests/test_socket_fd.py::ExpectTestCase::test_maxread - PermissionErro... FAILED tests/test_socket_fd.py::ExpectTestCase::test_multiple_interrupts - Pe... FAILED tests/test_socket_fd.py::ExpectTestCase::test_not_file_descriptor - Pe... FAILED tests/test_socket_fd.py::ExpectTestCase::test_not_int - PermissionErro... FAILED tests/test_socket_fd.py::ExpectTestCase::test_socket - PermissionError... FAILED tests/test_socket_fd.py::ExpectTestCase::test_socket_with_write - Perm... FAILED tests/test_socket_fd.py::ExpectTestCase::test_timeout - PermissionErro... FAILED tests/test_timeout_pattern.py::Exp_TimeoutTestCase::test_correctStackTrace FAILED tests/test_timeout_pattern.py::Exp_TimeoutTestCase::test_exp_timeout_notThrown FAILED tests/test_timeout_pattern.py::Exp_TimeoutTestCase::test_pattern_printout FAILED tests/test_timeout_pattern.py::Exp_TimeoutTestCase::test_stacktraceMunging FAILED tests/test_unicode.py::UnicodeTests::test_expect_basic - OSError: out ... FAILED tests/test_unicode.py::UnicodeTests::test_expect_echo_exact - OSError:... FAILED tests/test_unicode.py::UnicodeTests::test_expect_exact_basic - OSError... FAILED tests/test_unicode.py::UnicodeTests::test_expect_setecho_toggle - OSEr... FAILED tests/test_unicode.py::UnicodeTests::test_expect_setecho_toggle_exact FAILED tests/test_unicode.py::UnicodeTests::test_log_unicode - OSError: out o... FAILED tests/test_unicode.py::UnicodeTests::test_readline_bin_echo - OSError:... FAILED tests/test_unicode.py::UnicodeTests::test_spawn_expect_ascii_unicode FAILED tests/test_unicode.py::UnicodeTests::test_spawn_send_unicode - OSError... FAILED tests/test_unicode.py::UnicodeTests::test_spawn_utf8_incomplete - OSEr... FAILED tests/test_unicode.py::UnicodeTests::test_unicode_argv - OSError: out ... FAILED tests/test_winsize.py::TestCaseWinsize::test_initial_winsize - OSError... FAILED tests/test_winsize.py::TestCaseWinsize::test_initial_winsize_by_dimension FAILED tests/test_winsize.py::TestCaseWinsize::test_setwinsize - OSError: out... ========= 171 failed, 73 passed, 13 deselected, 47 warnings in 12.34s ========== >>> ERROR: py3-pexpect: check failed >>> py3-pexpect: Uninstalling dependencies... (1/28) Purging .makedepends-py3-pexpect (20250812.205249) (2/28) Purging py3-ptyprocess-pyc (0.7.0-r6) (3/28) Purging py3-ptyprocess (0.7.0-r6) (4/28) Purging py3-gpep517-pyc (19-r0) (5/28) Purging py3-gpep517 (19-r0) (6/28) Purging py3-installer-pyc (0.7.0-r2) (7/28) Purging py3-installer (0.7.0-r2) (8/28) Purging py3-setuptools-pyc (80.9.0-r0) (9/28) Purging py3-setuptools (80.9.0-r0) (10/28) Purging py3-wheel-pyc (0.46.1-r0) (11/28) Purging py3-wheel (0.46.1-r0) (12/28) Purging py3-pytest-pyc (8.4.1-r0) (13/28) Purging py3-pytest (8.4.1-r0) (14/28) Purging py3-iniconfig-pyc (2.1.0-r0) (15/28) Purging py3-iniconfig (2.1.0-r0) (16/28) Purging py3-pluggy-pyc (1.6.0-r0) (17/28) Purging py3-pluggy (1.6.0-r0) (18/28) Purging py3-py-pyc (1.11.0-r4) (19/28) Purging py3-py (1.11.0-r4) (20/28) Purging py3-pygments-pyc (2.19.2-r0) (21/28) Purging py3-pygments (2.19.2-r0) (22/28) Purging coreutils (9.7-r1) Executing coreutils-9.7-r1.post-deinstall (23/28) Purging coreutils-env (9.7-r1) (24/28) Purging coreutils-fmt (9.7-r1) (25/28) Purging coreutils-sha512sum (9.7-r1) (26/28) Purging libattr (2.5.2-r2) (27/28) Purging utmps-libs (0.1.3.1-r0) (28/28) Purging skalibs-libs (2.14.4.0-r0) Executing busybox-1.37.0-r19.trigger OK: 943 MiB in 319 packages