>>> py3-pytest-xprocess: Building community/py3-pytest-xprocess 0.23.0-r1 (using abuild 3.15.0-r0) started Mon, 13 Oct 2025 03:17:44 +0000 >>> py3-pytest-xprocess: Validating /home/udu/aports/community/py3-pytest-xprocess/APKBUILD... >>> WARNING: py3-pytest-xprocess: No maintainer >>> py3-pytest-xprocess: Analyzing dependencies... >>> py3-pytest-xprocess: Installing for build: build-base python3 py3-psutil py3-pytest py3-py py3-gpep517 py3-setuptools_scm py3-wheel WARNING: opening /home/udu/packages//community: No such file or directory WARNING: opening /home/udu/packages//main: No such file or directory fetch http://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz (1/25) Installing py3-psutil (7.0.0-r0) (2/25) Installing py3-psutil-pyc (7.0.0-r0) (3/25) Installing py3-iniconfig (2.1.0-r0) (4/25) Installing py3-iniconfig-pyc (2.1.0-r0) (5/25) Installing py3-parsing (3.2.3-r0) (6/25) Installing py3-parsing-pyc (3.2.3-r0) (7/25) Installing py3-packaging (25.0-r0) (8/25) Installing py3-packaging-pyc (25.0-r0) (9/25) Installing py3-pluggy (1.5.0-r0) (10/25) Installing py3-pluggy-pyc (1.5.0-r0) (11/25) Installing py3-py (1.11.0-r4) (12/25) Installing py3-py-pyc (1.11.0-r4) (13/25) Installing py3-pytest (8.3.5-r0) (14/25) Installing py3-pytest-pyc (8.3.5-r0) (15/25) Installing py3-installer (0.7.0-r2) (16/25) Installing py3-installer-pyc (0.7.0-r2) (17/25) Installing py3-gpep517 (19-r0) (18/25) Installing py3-gpep517-pyc (19-r0) (19/25) Installing py3-setuptools (80.9.0-r0) (20/25) Installing py3-setuptools-pyc (80.9.0-r0) (21/25) Installing py3-setuptools_scm (8.3.1-r0) (22/25) Installing py3-setuptools_scm-pyc (8.3.1-r0) (23/25) Installing py3-wheel (0.46.1-r0) (24/25) Installing py3-wheel-pyc (0.46.1-r0) (25/25) Installing .makedepends-py3-pytest-xprocess (20251013.031745) Executing busybox-1.37.0-r19.trigger OK: 311 MiB in 114 packages >>> py3-pytest-xprocess: Cleaning up srcdir >>> py3-pytest-xprocess: Cleaning up pkgdir >>> py3-pytest-xprocess: Cleaning up tmpdir >>> py3-pytest-xprocess: Fetching py3-pytest-xprocess-0.23.0.tar.gz::https://github.com/pytest-dev/pytest-xprocess/archive/refs/tags/0.23.0.tar.gz >>> py3-pytest-xprocess: Fetching py3-pytest-xprocess-0.23.0.tar.gz::https://github.com/pytest-dev/pytest-xprocess/archive/refs/tags/0.23.0.tar.gz >>> py3-pytest-xprocess: Checking sha512sums... py3-pytest-xprocess-0.23.0.tar.gz: OK >>> py3-pytest-xprocess: Unpacking /var/cache/distfiles/py3-pytest-xprocess-0.23.0.tar.gz... 2025-10-13 03:17:46,038 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 :: MIT License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() 2025-10-13 03:17:46,056 root INFO running bdist_wheel 2025-10-13 03:17:46,065 root INFO running build 2025-10-13 03:17:46,065 root INFO running build_py 2025-10-13 03:17:46,067 root INFO creating build/lib/xprocess 2025-10-13 03:17:46,067 root INFO copying xprocess/pytest_xprocess.py -> build/lib/xprocess 2025-10-13 03:17:46,067 root INFO copying xprocess/xprocess.py -> build/lib/xprocess 2025-10-13 03:17:46,067 root INFO copying xprocess/__init__.py -> build/lib/xprocess 2025-10-13 03:17:46,071 root INFO installing to build/bdist.linux-x86_64/wheel 2025-10-13 03:17:46,071 root INFO running install 2025-10-13 03:17:46,076 root INFO running install_lib 2025-10-13 03:17:46,078 root INFO creating build/bdist.linux-x86_64/wheel 2025-10-13 03:17:46,078 root INFO creating build/bdist.linux-x86_64/wheel/xprocess 2025-10-13 03:17:46,078 root INFO copying build/lib/xprocess/pytest_xprocess.py -> build/bdist.linux-x86_64/wheel/./xprocess 2025-10-13 03:17:46,078 root INFO copying build/lib/xprocess/xprocess.py -> build/bdist.linux-x86_64/wheel/./xprocess 2025-10-13 03:17:46,078 root INFO copying build/lib/xprocess/__init__.py -> build/bdist.linux-x86_64/wheel/./xprocess 2025-10-13 03:17:46,078 root INFO running install_egg_info 2025-10-13 03:17:46,080 root INFO running egg_info 2025-10-13 03:17:46,081 root INFO creating pytest_xprocess.egg-info 2025-10-13 03:17:46,081 root INFO writing pytest_xprocess.egg-info/PKG-INFO 2025-10-13 03:17:46,082 root INFO writing dependency_links to pytest_xprocess.egg-info/dependency_links.txt 2025-10-13 03:17:46,082 root INFO writing entry points to pytest_xprocess.egg-info/entry_points.txt 2025-10-13 03:17:46,082 root INFO writing requirements to pytest_xprocess.egg-info/requires.txt 2025-10-13 03:17:46,082 root INFO writing top-level names to pytest_xprocess.egg-info/top_level.txt 2025-10-13 03:17:46,082 root INFO writing manifest file 'pytest_xprocess.egg-info/SOURCES.txt' ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any 2025-10-13 03:17:46,088 root INFO reading manifest file 'pytest_xprocess.egg-info/SOURCES.txt' 2025-10-13 03:17:46,089 root INFO reading manifest template 'MANIFEST.in' 2025-10-13 03:17:46,089 root WARNING warning: no files found matching 'CHANGELOG' 2025-10-13 03:17:46,089 root WARNING warning: no directories found matching 'example' 2025-10-13 03:17:46,089 root INFO adding license file 'LICENSE' 2025-10-13 03:17:46,089 root INFO writing manifest file 'pytest_xprocess.egg-info/SOURCES.txt' 2025-10-13 03:17:46,090 root INFO Copying pytest_xprocess.egg-info to build/bdist.linux-x86_64/wheel/./pytest_xprocess-0.23.0-py3.12.egg-info 2025-10-13 03:17:46,090 root INFO running install_scripts 2025-10-13 03:17:46,090 root INFO creating build/bdist.linux-x86_64/wheel/pytest_xprocess-0.23.0.dist-info/WHEEL 2025-10-13 03:17:46,091 wheel INFO creating '/home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.dist/.tmp-9atcjn_z/pytest_xprocess-0.23.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it 2025-10-13 03:17:46,091 wheel INFO adding 'pytest_xprocess-0.23.0.dist-info/licenses/LICENSE' 2025-10-13 03:17:46,091 wheel INFO adding 'xprocess/__init__.py' 2025-10-13 03:17:46,091 wheel INFO adding 'xprocess/pytest_xprocess.py' 2025-10-13 03:17:46,091 wheel INFO adding 'xprocess/xprocess.py' 2025-10-13 03:17:46,091 wheel INFO adding 'pytest_xprocess-0.23.0.dist-info/METADATA' 2025-10-13 03:17:46,091 wheel INFO adding 'pytest_xprocess-0.23.0.dist-info/WHEEL' 2025-10-13 03:17:46,091 wheel INFO adding 'pytest_xprocess-0.23.0.dist-info/entry_points.txt' 2025-10-13 03:17:46,091 wheel INFO adding 'pytest_xprocess-0.23.0.dist-info/top_level.txt' 2025-10-13 03:17:46,092 wheel INFO adding 'pytest_xprocess-0.23.0.dist-info/RECORD' 2025-10-13 03:17:46,092 root INFO removing build/bdist.linux-x86_64/wheel 2025-10-13 03:17:46,092 gpep517 INFO The backend produced .dist/pytest_xprocess-0.23.0-py3-none-any.whl pytest_xprocess-0.23.0-py3-none-any.whl ============================================================================================================================================ test session starts ============================================================================================================================================= platform linux -- Python 3.12.11, pytest-8.3.5, pluggy-1.5.0 rootdir: /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0 configfile: tox.ini plugins: xprocess-0.23.0 collected 45 items tests/test_callback.py FFF... [ 13%] tests/test_functional_workflow.py F [ 15%] tests/test_interruption_clean_up.py .F [ 20%] tests/test_process_initialization.py FFFFFFFFF...FFF [ 53%] tests/test_process_termination.py FFF...FFFFFFFFF [ 86%] tests/test_resource_cleanup.py ... [ 93%] tests/test_startup_timeout.py ... [100%] ================================================================================================================================================== FAILURES ================================================================================================================================================== _________________________________________________________________________________________________________________________________________ test_callback_success[s1] __________________________________________________________________________________________________________________________________________ xprocess = , tcp_port = 50011, proc_name = 's1' @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_callback_success(xprocess, tcp_port, proc_name): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--no-children"] def startup_check(self): with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock: sock.connect(("localhost", tcp_port)) sock.sendall(bytes("bacon\n", "utf-8")) received = str(sock.recv(1024), "utf-8") return received == "bacon\n".upper() xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_callback.py:27: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s1$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 50011 --no-children process 's1' started pid=1499138 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s1 process startup detected _________________________________________________________________________________________________________________________________________ test_callback_success[s2] __________________________________________________________________________________________________________________________________________ xprocess = , tcp_port = 55559, proc_name = 's2' @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_callback_success(xprocess, tcp_port, proc_name): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--no-children"] def startup_check(self): with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock: sock.connect(("localhost", tcp_port)) sock.sendall(bytes("bacon\n", "utf-8")) received = str(sock.recv(1024), "utf-8") return received == "bacon\n".upper() xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_callback.py:27: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s2$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 55559 --no-children process 's2' started pid=1499182 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s2 process startup detected _________________________________________________________________________________________________________________________________________ test_callback_success[s3] __________________________________________________________________________________________________________________________________________ xprocess = , tcp_port = 37069, proc_name = 's3' @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_callback_success(xprocess, tcp_port, proc_name): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--no-children"] def startup_check(self): with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock: sock.connect(("localhost", tcp_port)) sock.sendall(bytes("bacon\n", "utf-8")) received = str(sock.recv(1024), "utf-8") return received == "bacon\n".upper() xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_callback.py:27: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s3$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 37069 --no-children process 's3' started pid=1499228 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s3 process startup detected _________________________________________________________________________________________________________________________________________ test_functional_work_flow __________________________________________________________________________________________________________________________________________ testdir = , tcp_port = 51595 def test_functional_work_flow(testdir, tcp_port): server_path = Path(__file__).parent.joinpath("server.py").absolute() testdir.makepyfile( """ import sys import socket from xprocess import ProcessStarter def test_server(request, xprocess): port = %r data = "spam\\n" server_path = %r class Starter(ProcessStarter): pattern = "started" max_read_lines = 200 args = [sys.executable, server_path, port] # required so test won't hang on pytest_unconfigure xprocess.proc_wait_timeout = 1 xprocess.ensure("server_workflow_test", Starter) with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock: sock.connect(("localhost", port)) sock.sendall(bytes(data, "utf-8")) received = str(sock.recv(1024), "utf-8") assert received == data.upper() """ % (tcp_port, str(server_path)) ) result = testdir.runpytest() result.stdout.fnmatch_lines("*1 passed*") result = testdir.runpytest("--xshow") > result.stdout.fnmatch_lines("*LIVE*") E Failed: nomatch: '*LIVE*' E and: '1502554 server_workflow_test DEAD /tmp/pytest-of-udu/pytest-0/test_functional_work_flow0/.pytest_cache/d/.xprocess/server_workflow_test/xprocess.log' E remains unmatched: '*LIVE*' /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/test_functional_workflow.py:38: Failed -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- ============================================================================================================================================ test session starts ============================================================================================================================================= platform linux -- Python 3.12.11, pytest-8.3.5, pluggy-1.5.0 rootdir: /tmp/pytest-of-udu/pytest-0/test_functional_work_flow0 plugins: xprocess-0.23.0 collected 1 item test_functional_work_flow.py . [100%] ============================================================================================================================================= 1 passed in 0.21s ============================================================================================================================================== 1502554 server_workflow_test DEAD /tmp/pytest-of-udu/pytest-0/test_functional_work_flow0/.pytest_cache/d/.xprocess/server_workflow_test/xprocess.log _____________________________________________________________________________________________________________________________________ test_interruption_does_not_cleanup _____________________________________________________________________________________________________________________________________ testdir = , tcp_port = 39135 def test_interruption_does_not_cleanup(testdir, tcp_port): server_path = Path(__file__).parent.joinpath("server.py").absolute() testdir.makepyfile( """ import sys import socket from xprocess import ProcessStarter def test_servers_start(request, xprocess): port = %r server_path = %r class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, port] xprocess.ensure("server_test_interrupt_no_terminate", Starter) raise KeyboardInterrupt """ % (tcp_port, str(server_path)) ) result = testdir.runpytest_subprocess() result.stdout.fnmatch_lines("*KeyboardInterrupt*") result = testdir.runpytest("--xshow") > result.stdout.fnmatch_lines("*LIVE*") E Failed: nomatch: '*LIVE*' E and: '1502741 server_test_interrupt_no_terminate DEAD /tmp/pytest-of-udu/pytest-0/test_interruption_does_not_cleanup0/.pytest_cache/d/.xprocess/server_test_interrupt_no_terminate/xprocess.log' E remains unmatched: '*LIVE*' /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/test_interruption_clean_up.py:58: Failed -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- running: /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 -mpytest --basetemp=/tmp/pytest-of-udu/pytest-0/test_interruption_does_not_cleanup0/runpytest-0 in: /tmp/pytest-of-udu/pytest-0/test_interruption_does_not_cleanup0 ============================================================================================================================================ test session starts ============================================================================================================================================= platform linux -- Python 3.12.11, pytest-8.3.5, pluggy-1.5.0 rootdir: /tmp/pytest-of-udu/pytest-0/test_interruption_does_not_cleanup0 plugins: xprocess-0.23.0 collected 1 item test_interruption_does_not_cleanup.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /tmp/pytest-of-udu/pytest-0/test_interruption_does_not_cleanup0/test_interruption_does_not_cleanup.py:15: KeyboardInterrupt (to show a full traceback on KeyboardInterrupt use --full-trace) =========================================================================================================================================== no tests ran in 0.35s ============================================================================================================================================ 1502741 server_test_interrupt_no_terminate DEAD /tmp/pytest-of-udu/pytest-0/test_interruption_does_not_cleanup0/.pytest_cache/d/.xprocess/server_test_interrupt_no_terminate/xprocess.log ___________________________________________________________________________________________________________________________________________ test_servers_start[s1] ___________________________________________________________________________________________________________________________________________ tcp_port = 57221, proc_name = 's1', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_servers_start(tcp_port, proc_name, xprocess): data = "bacon\n" class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--no-children"] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) assert request_response_cycle(tcp_port, data) > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_process_initialization.py:33: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s1$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 57221 --no-children process 's1' started pid=1502823 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s1 process startup detected ___________________________________________________________________________________________________________________________________________ test_servers_start[s2] ___________________________________________________________________________________________________________________________________________ tcp_port = 51361, proc_name = 's2', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_servers_start(tcp_port, proc_name, xprocess): data = "bacon\n" class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--no-children"] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) assert request_response_cycle(tcp_port, data) > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_process_initialization.py:33: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s2$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 51361 --no-children process 's2' started pid=1502869 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s2 process startup detected ___________________________________________________________________________________________________________________________________________ test_servers_start[s3] ___________________________________________________________________________________________________________________________________________ tcp_port = 45635, proc_name = 's3', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_servers_start(tcp_port, proc_name, xprocess): data = "bacon\n" class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--no-children"] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) assert request_response_cycle(tcp_port, data) > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_process_initialization.py:33: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s3$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 45635 --no-children process 's3' started pid=1502912 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s3 process startup detected ________________________________________________________________________________________________________________________________________ test_ensure_not_restart[s1] _________________________________________________________________________________________________________________________________________ tcp_port = 59009, proc_name = 's1', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_ensure_not_restart(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--no-children"] proc_id = xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert xprocess.ensure(proc_name, Starter) == proc_id tests/test_process_initialization.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ xprocess/xprocess.py:284: in ensure if not starter.wait(log_file_handle): xprocess/xprocess.py:401: in wait has_match = any(re.search(self.pattern, line) for line in lines) xprocess/xprocess.py:401: in has_match = any(re.search(self.pattern, line) for line in lines) xprocess/xprocess.py:407: in non_empty_lines = (x for x in lines if x.strip()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = .Starter object at 0x71edc70de0c0>, log_file = <_io.TextIOWrapper name='/home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s1/xprocess.log' mode='r' encoding='UTF-8'> def get_lines(self, log_file): """Read and yield one line at a time from log_file. Will raise TimeoutError if pattern is not matched before self.timeout seconds.""" while True: line = log_file.readline() if not line: time.sleep(0.1) if datetime.now() > self._max_time: > raise TimeoutError( "The provided start pattern {} could not be matched \ within the specified time interval of {} seconds".format( self.pattern, self.timeout ) ) E TimeoutError: The provided start pattern started could not be matched within the specified time interval of 120 seconds xprocess/xprocess.py:424: TimeoutError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s1$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 59009 --no-children process 's1' started pid=1502958 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s1 process startup detected /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s1$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 59009 --no-children process 's1' started pid=1503001 Traceback (most recent call last): File "/home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py", line 80, in server = TestServer((HOST, PORT), TestHandler) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/socketserver.py", line 457, in __init__ self.server_bind() File "/usr/lib/python3.12/socketserver.py", line 478, in server_bind self.socket.bind(self.server_address) OSError: [Errno 98] Address in use ________________________________________________________________________________________________________________________________________ test_ensure_not_restart[s2] _________________________________________________________________________________________________________________________________________ tcp_port = 43905, proc_name = 's2', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_ensure_not_restart(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--no-children"] proc_id = xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert xprocess.ensure(proc_name, Starter) == proc_id tests/test_process_initialization.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ xprocess/xprocess.py:284: in ensure if not starter.wait(log_file_handle): xprocess/xprocess.py:401: in wait has_match = any(re.search(self.pattern, line) for line in lines) xprocess/xprocess.py:401: in has_match = any(re.search(self.pattern, line) for line in lines) xprocess/xprocess.py:407: in non_empty_lines = (x for x in lines if x.strip()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = .Starter object at 0x71edc70dd9d0>, log_file = <_io.TextIOWrapper name='/home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s2/xprocess.log' mode='r' encoding='UTF-8'> def get_lines(self, log_file): """Read and yield one line at a time from log_file. Will raise TimeoutError if pattern is not matched before self.timeout seconds.""" while True: line = log_file.readline() if not line: time.sleep(0.1) if datetime.now() > self._max_time: > raise TimeoutError( "The provided start pattern {} could not be matched \ within the specified time interval of {} seconds".format( self.pattern, self.timeout ) ) E TimeoutError: The provided start pattern started could not be matched within the specified time interval of 120 seconds xprocess/xprocess.py:424: TimeoutError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s2$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 43905 --no-children process 's2' started pid=1528730 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s2 process startup detected /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s2$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 43905 --no-children process 's2' started pid=1528773 Traceback (most recent call last): File "/home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py", line 80, in server = TestServer((HOST, PORT), TestHandler) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/socketserver.py", line 457, in __init__ self.server_bind() File "/usr/lib/python3.12/socketserver.py", line 478, in server_bind self.socket.bind(self.server_address) OSError: [Errno 98] Address in use ________________________________________________________________________________________________________________________________________ test_ensure_not_restart[s3] _________________________________________________________________________________________________________________________________________ tcp_port = 58407, proc_name = 's3', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_ensure_not_restart(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--no-children"] proc_id = xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert xprocess.ensure(proc_name, Starter) == proc_id tests/test_process_initialization.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ xprocess/xprocess.py:284: in ensure if not starter.wait(log_file_handle): xprocess/xprocess.py:401: in wait has_match = any(re.search(self.pattern, line) for line in lines) xprocess/xprocess.py:401: in has_match = any(re.search(self.pattern, line) for line in lines) xprocess/xprocess.py:407: in non_empty_lines = (x for x in lines if x.strip()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = .Starter object at 0x71edc709c560>, log_file = <_io.TextIOWrapper name='/home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s3/xprocess.log' mode='r' encoding='UTF-8'> def get_lines(self, log_file): """Read and yield one line at a time from log_file. Will raise TimeoutError if pattern is not matched before self.timeout seconds.""" while True: line = log_file.readline() if not line: time.sleep(0.1) if datetime.now() > self._max_time: > raise TimeoutError( "The provided start pattern {} could not be matched \ within the specified time interval of {} seconds".format( self.pattern, self.timeout ) ) E TimeoutError: The provided start pattern started could not be matched within the specified time interval of 120 seconds xprocess/xprocess.py:424: TimeoutError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s3$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 58407 --no-children process 's3' started pid=1552204 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s3 process startup detected /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s3$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 58407 --no-children process 's3' started pid=1552224 Traceback (most recent call last): File "/home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py", line 80, in server = TestServer((HOST, PORT), TestHandler) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/socketserver.py", line 457, in __init__ self.server_bind() File "/usr/lib/python3.12/socketserver.py", line 478, in server_bind self.socket.bind(self.server_address) OSError: [Errno 98] Address in use ____________________________________________________________________________________________________________________________ test_startup_detection_max_read_lines[s1-started-21] ____________________________________________________________________________________________________________________________ tcp_port = 49259, proc_name = 's1', proc_pttrn = 'started', lines = 21, xprocess = @pytest.mark.parametrize( "proc_name,proc_pttrn,lines", [ ("s1", "started", 21), ("s2", "spam, bacon, eggs", 30), ("s3", "finally started", 130), ], ) def test_startup_detection_max_read_lines( tcp_port, proc_name, proc_pttrn, lines, xprocess ): data = "bacon\n" class Starter(ProcessStarter): pattern = proc_pttrn max_read_lines = lines args = [sys.executable, server_path, tcp_port, "--no-children"] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_process_initialization.py:70: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s1$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 49259 --no-children process 's1' started pid=1572027 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s1 process startup detected _______________________________________________________________________________________________________________________ test_startup_detection_max_read_lines[s2-spam, bacon, eggs-30] _______________________________________________________________________________________________________________________ tcp_port = 38883, proc_name = 's2', proc_pttrn = 'spam, bacon, eggs', lines = 30, xprocess = @pytest.mark.parametrize( "proc_name,proc_pttrn,lines", [ ("s1", "started", 21), ("s2", "spam, bacon, eggs", 30), ("s3", "finally started", 130), ], ) def test_startup_detection_max_read_lines( tcp_port, proc_name, proc_pttrn, lines, xprocess ): data = "bacon\n" class Starter(ProcessStarter): pattern = proc_pttrn max_read_lines = lines args = [sys.executable, server_path, tcp_port, "--no-children"] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_process_initialization.py:70: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s2$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 38883 --no-children process 's2' started pid=1572065 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started spam, bacon, eggs s2 process startup detected _______________________________________________________________________________________________________________________ test_startup_detection_max_read_lines[s3-finally started-130] ________________________________________________________________________________________________________________________ tcp_port = 43369, proc_name = 's3', proc_pttrn = 'finally started', lines = 130, xprocess = @pytest.mark.parametrize( "proc_name,proc_pttrn,lines", [ ("s1", "started", 21), ("s2", "spam, bacon, eggs", 30), ("s3", "finally started", 130), ], ) def test_startup_detection_max_read_lines( tcp_port, proc_name, proc_pttrn, lines, xprocess ): data = "bacon\n" class Starter(ProcessStarter): pattern = proc_pttrn max_read_lines = lines args = [sys.executable, server_path, tcp_port, "--no-children"] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_process_initialization.py:70: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s3$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 43369 --no-children process 's3' started pid=1572083 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs spam, bacon, eggs ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? finally started s3 process startup detected ___________________________________________________________________________________________________________________________________________ test_popen_kwargs[s1] ____________________________________________________________________________________________________________________________________________ tcp_port = 53787, proc_name = 's1', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_popen_kwargs(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--no-children"] popen_kwargs = {"universal_newlines": True} xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) proc = xprocess.resources[-1].popen text_mode = proc.text_mode > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_process_initialization.py:114: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s1$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 53787 --no-children process 's1' started pid=1572161 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s1 process startup detected ___________________________________________________________________________________________________________________________________________ test_popen_kwargs[s2] ____________________________________________________________________________________________________________________________________________ tcp_port = 53175, proc_name = 's2', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_popen_kwargs(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--no-children"] popen_kwargs = {"universal_newlines": True} xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) proc = xprocess.resources[-1].popen text_mode = proc.text_mode > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_process_initialization.py:114: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s2$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 53175 --no-children process 's2' started pid=1572182 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s2 process startup detected ___________________________________________________________________________________________________________________________________________ test_popen_kwargs[s3] ____________________________________________________________________________________________________________________________________________ tcp_port = 38403, proc_name = 's3', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_popen_kwargs(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--no-children"] popen_kwargs = {"universal_newlines": True} xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) proc = xprocess.resources[-1].popen text_mode = proc.text_mode > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_process_initialization.py:114: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s3$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 38403 --no-children process 's3' started pid=1572201 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s3 process startup detected __________________________________________________________________________________________________________________________________________ test_clean_shutdown[s1] ___________________________________________________________________________________________________________________________________________ tcp_port = 34901, proc_name = 's1', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_clean_shutdown(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_process_termination.py:20: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s1$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 34901 process 's1' started pid=1572221 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s1 process startup detected __________________________________________________________________________________________________________________________________________ test_clean_shutdown[s2] ___________________________________________________________________________________________________________________________________________ tcp_port = 33653, proc_name = 's2', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_clean_shutdown(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_process_termination.py:20: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s2$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 33653 process 's2' started pid=1572343 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s2 process startup detected __________________________________________________________________________________________________________________________________________ test_clean_shutdown[s3] ___________________________________________________________________________________________________________________________________________ tcp_port = 42671, proc_name = 's3', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_clean_shutdown(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert info.isrunning() E assert False E + where False = isrunning() E + where isrunning = .isrunning tests/test_process_termination.py:20: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s3$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 42671 process 's3' started pid=1572584 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s3 process startup detected _______________________________________________________________________________________________________________________________________ test_terminate_only_parent[s1] _______________________________________________________________________________________________________________________________________ tcp_port = 33133, proc_name = 's1', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_terminate_only_parent(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > children = psutil.Process(info.pid).children() tests/test_process_termination.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/psutil/__init__.py:317: in __init__ self._init(pid) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = psutil.Process(pid=1572824, status='terminated'), pid = 1572824, _ignore_nsp = False def _init(self, pid, _ignore_nsp=False): if pid is None: pid = os.getpid() else: if pid < 0: msg = f"pid must be a positive integer (got {pid})" raise ValueError(msg) try: _psplatform.cext.check_pid_range(pid) except OverflowError as err: msg = "process PID out of range" raise NoSuchProcess(pid, msg=msg) from err self._pid = pid self._name = None self._exe = None self._create_time = None self._gone = False self._pid_reused = False self._hash = None self._lock = threading.RLock() # used for caching on Windows only (on POSIX ppid may change) self._ppid = None # platform-specific modules define an _psplatform.Process # implementation class self._proc = _psplatform.Process(pid) self._last_sys_cpu_times = None self._last_proc_cpu_times = None self._exitcode = _SENTINEL self._ident = (self.pid, None) try: self._ident = self._get_ident() except AccessDenied: # This should happen on Windows only, since we use the fast # create time method. AFAIK, on all other platforms we are # able to get create time for all PIDs. pass except ZombieProcess: # Zombies can still be queried by this class (although # not always) and pids() return them so just go on. pass except NoSuchProcess: if not _ignore_nsp: msg = "process PID not found" > raise NoSuchProcess(pid, msg=msg) from None E psutil.NoSuchProcess: process PID not found (pid=1572824) /usr/lib/python3.12/site-packages/psutil/__init__.py:363: NoSuchProcess -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s1$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 33133 process 's1' started pid=1572824 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s1 process startup detected _______________________________________________________________________________________________________________________________________ test_terminate_only_parent[s2] _______________________________________________________________________________________________________________________________________ tcp_port = 60925, proc_name = 's2', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_terminate_only_parent(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > children = psutil.Process(info.pid).children() tests/test_process_termination.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/psutil/__init__.py:317: in __init__ self._init(pid) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = psutil.Process(pid=1572846, status='terminated'), pid = 1572846, _ignore_nsp = False def _init(self, pid, _ignore_nsp=False): if pid is None: pid = os.getpid() else: if pid < 0: msg = f"pid must be a positive integer (got {pid})" raise ValueError(msg) try: _psplatform.cext.check_pid_range(pid) except OverflowError as err: msg = "process PID out of range" raise NoSuchProcess(pid, msg=msg) from err self._pid = pid self._name = None self._exe = None self._create_time = None self._gone = False self._pid_reused = False self._hash = None self._lock = threading.RLock() # used for caching on Windows only (on POSIX ppid may change) self._ppid = None # platform-specific modules define an _psplatform.Process # implementation class self._proc = _psplatform.Process(pid) self._last_sys_cpu_times = None self._last_proc_cpu_times = None self._exitcode = _SENTINEL self._ident = (self.pid, None) try: self._ident = self._get_ident() except AccessDenied: # This should happen on Windows only, since we use the fast # create time method. AFAIK, on all other platforms we are # able to get create time for all PIDs. pass except ZombieProcess: # Zombies can still be queried by this class (although # not always) and pids() return them so just go on. pass except NoSuchProcess: if not _ignore_nsp: msg = "process PID not found" > raise NoSuchProcess(pid, msg=msg) from None E psutil.NoSuchProcess: process PID not found (pid=1572846) /usr/lib/python3.12/site-packages/psutil/__init__.py:363: NoSuchProcess -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s2$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 60925 process 's2' started pid=1572846 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s2 process startup detected _______________________________________________________________________________________________________________________________________ test_terminate_only_parent[s3] _______________________________________________________________________________________________________________________________________ tcp_port = 47795, proc_name = 's3', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_terminate_only_parent(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > children = psutil.Process(info.pid).children() tests/test_process_termination.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/psutil/__init__.py:317: in __init__ self._init(pid) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = psutil.Process(pid=1572869, status='terminated'), pid = 1572869, _ignore_nsp = False def _init(self, pid, _ignore_nsp=False): if pid is None: pid = os.getpid() else: if pid < 0: msg = f"pid must be a positive integer (got {pid})" raise ValueError(msg) try: _psplatform.cext.check_pid_range(pid) except OverflowError as err: msg = "process PID out of range" raise NoSuchProcess(pid, msg=msg) from err self._pid = pid self._name = None self._exe = None self._create_time = None self._gone = False self._pid_reused = False self._hash = None self._lock = threading.RLock() # used for caching on Windows only (on POSIX ppid may change) self._ppid = None # platform-specific modules define an _psplatform.Process # implementation class self._proc = _psplatform.Process(pid) self._last_sys_cpu_times = None self._last_proc_cpu_times = None self._exitcode = _SENTINEL self._ident = (self.pid, None) try: self._ident = self._get_ident() except AccessDenied: # This should happen on Windows only, since we use the fast # create time method. AFAIK, on all other platforms we are # able to get create time for all PIDs. pass except ZombieProcess: # Zombies can still be queried by this class (although # not always) and pids() return them so just go on. pass except NoSuchProcess: if not _ignore_nsp: msg = "process PID not found" > raise NoSuchProcess(pid, msg=msg) from None E psutil.NoSuchProcess: process PID not found (pid=1572869) /usr/lib/python3.12/site-packages/psutil/__init__.py:363: NoSuchProcess -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s3$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 47795 process 's3' started pid=1572869 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s3 process startup detected ___________________________________________________________________________________________________________________________________ test_sigkill_after_failed_sigterm[s1] ____________________________________________________________________________________________________________________________________ tcp_port = 33325, proc_name = 's1', xprocess = @pytest.mark.skipif( sys.platform == "win32", reason="on windows SIGTERM is treated as an alias for kill()", ) @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_sigkill_after_failed_sigterm(tcp_port, proc_name, xprocess): # explicitly tell xprocess_starter fixture to make # server instance ignore SIGTERM class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--ignore-sigterm"] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) # since terminate with sigterm will fail, set a lower # timeout before sending sigkill so tests won't take too long assert ( info.terminate(timeout=2) == 1 > or psutil.Process(info.pid).status() == psutil.STATUS_ZOMBIE ) tests/test_process_termination.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/psutil/__init__.py:317: in __init__ self._init(pid) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = psutil.Process(pid=1572915, status='terminated'), pid = 1572915, _ignore_nsp = False def _init(self, pid, _ignore_nsp=False): if pid is None: pid = os.getpid() else: if pid < 0: msg = f"pid must be a positive integer (got {pid})" raise ValueError(msg) try: _psplatform.cext.check_pid_range(pid) except OverflowError as err: msg = "process PID out of range" raise NoSuchProcess(pid, msg=msg) from err self._pid = pid self._name = None self._exe = None self._create_time = None self._gone = False self._pid_reused = False self._hash = None self._lock = threading.RLock() # used for caching on Windows only (on POSIX ppid may change) self._ppid = None # platform-specific modules define an _psplatform.Process # implementation class self._proc = _psplatform.Process(pid) self._last_sys_cpu_times = None self._last_proc_cpu_times = None self._exitcode = _SENTINEL self._ident = (self.pid, None) try: self._ident = self._get_ident() except AccessDenied: # This should happen on Windows only, since we use the fast # create time method. AFAIK, on all other platforms we are # able to get create time for all PIDs. pass except ZombieProcess: # Zombies can still be queried by this class (although # not always) and pids() return them so just go on. pass except NoSuchProcess: if not _ignore_nsp: msg = "process PID not found" > raise NoSuchProcess(pid, msg=msg) from None E psutil.NoSuchProcess: process PID not found (pid=1572915) /usr/lib/python3.12/site-packages/psutil/__init__.py:363: NoSuchProcess -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s1$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 33325 --ignore-sigterm process 's1' started pid=1572915 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s1 process startup detected ___________________________________________________________________________________________________________________________________ test_sigkill_after_failed_sigterm[s2] ____________________________________________________________________________________________________________________________________ tcp_port = 39819, proc_name = 's2', xprocess = @pytest.mark.skipif( sys.platform == "win32", reason="on windows SIGTERM is treated as an alias for kill()", ) @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_sigkill_after_failed_sigterm(tcp_port, proc_name, xprocess): # explicitly tell xprocess_starter fixture to make # server instance ignore SIGTERM class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--ignore-sigterm"] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) # since terminate with sigterm will fail, set a lower # timeout before sending sigkill so tests won't take too long assert ( info.terminate(timeout=2) == 1 > or psutil.Process(info.pid).status() == psutil.STATUS_ZOMBIE ) tests/test_process_termination.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/psutil/__init__.py:317: in __init__ self._init(pid) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = psutil.Process(pid=1572978, status='terminated'), pid = 1572978, _ignore_nsp = False def _init(self, pid, _ignore_nsp=False): if pid is None: pid = os.getpid() else: if pid < 0: msg = f"pid must be a positive integer (got {pid})" raise ValueError(msg) try: _psplatform.cext.check_pid_range(pid) except OverflowError as err: msg = "process PID out of range" raise NoSuchProcess(pid, msg=msg) from err self._pid = pid self._name = None self._exe = None self._create_time = None self._gone = False self._pid_reused = False self._hash = None self._lock = threading.RLock() # used for caching on Windows only (on POSIX ppid may change) self._ppid = None # platform-specific modules define an _psplatform.Process # implementation class self._proc = _psplatform.Process(pid) self._last_sys_cpu_times = None self._last_proc_cpu_times = None self._exitcode = _SENTINEL self._ident = (self.pid, None) try: self._ident = self._get_ident() except AccessDenied: # This should happen on Windows only, since we use the fast # create time method. AFAIK, on all other platforms we are # able to get create time for all PIDs. pass except ZombieProcess: # Zombies can still be queried by this class (although # not always) and pids() return them so just go on. pass except NoSuchProcess: if not _ignore_nsp: msg = "process PID not found" > raise NoSuchProcess(pid, msg=msg) from None E psutil.NoSuchProcess: process PID not found (pid=1572978) /usr/lib/python3.12/site-packages/psutil/__init__.py:363: NoSuchProcess -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s2$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 39819 --ignore-sigterm process 's2' started pid=1572978 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s2 process startup detected ___________________________________________________________________________________________________________________________________ test_sigkill_after_failed_sigterm[s3] ____________________________________________________________________________________________________________________________________ tcp_port = 40053, proc_name = 's3', xprocess = @pytest.mark.skipif( sys.platform == "win32", reason="on windows SIGTERM is treated as an alias for kill()", ) @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_sigkill_after_failed_sigterm(tcp_port, proc_name, xprocess): # explicitly tell xprocess_starter fixture to make # server instance ignore SIGTERM class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port, "--ignore-sigterm"] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) # since terminate with sigterm will fail, set a lower # timeout before sending sigkill so tests won't take too long assert ( info.terminate(timeout=2) == 1 > or psutil.Process(info.pid).status() == psutil.STATUS_ZOMBIE ) tests/test_process_termination.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/psutil/__init__.py:317: in __init__ self._init(pid) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = psutil.Process(pid=1573193, status='terminated'), pid = 1573193, _ignore_nsp = False def _init(self, pid, _ignore_nsp=False): if pid is None: pid = os.getpid() else: if pid < 0: msg = f"pid must be a positive integer (got {pid})" raise ValueError(msg) try: _psplatform.cext.check_pid_range(pid) except OverflowError as err: msg = "process PID out of range" raise NoSuchProcess(pid, msg=msg) from err self._pid = pid self._name = None self._exe = None self._create_time = None self._gone = False self._pid_reused = False self._hash = None self._lock = threading.RLock() # used for caching on Windows only (on POSIX ppid may change) self._ppid = None # platform-specific modules define an _psplatform.Process # implementation class self._proc = _psplatform.Process(pid) self._last_sys_cpu_times = None self._last_proc_cpu_times = None self._exitcode = _SENTINEL self._ident = (self.pid, None) try: self._ident = self._get_ident() except AccessDenied: # This should happen on Windows only, since we use the fast # create time method. AFAIK, on all other platforms we are # able to get create time for all PIDs. pass except ZombieProcess: # Zombies can still be queried by this class (although # not always) and pids() return them so just go on. pass except NoSuchProcess: if not _ignore_nsp: msg = "process PID not found" > raise NoSuchProcess(pid, msg=msg) from None E psutil.NoSuchProcess: process PID not found (pid=1573193) /usr/lib/python3.12/site-packages/psutil/__init__.py:363: NoSuchProcess -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s3$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 40053 --ignore-sigterm process 's3' started pid=1573193 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s3 process startup detected ______________________________________________________________________________________________________________________________________ test_return_value_on_failure[s1] ______________________________________________________________________________________________________________________________________ tcp_port = 46147, proc_name = 's1', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_return_value_on_failure(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert info.terminate(timeout=-1) == -1 E assert 0 == -1 E + where 0 = terminate(timeout=-1) E + where terminate = .terminate tests/test_process_termination.py:91: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s1$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 46147 process 's1' started pid=1573299 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s1 process startup detected ______________________________________________________________________________________________________________________________________ test_return_value_on_failure[s2] ______________________________________________________________________________________________________________________________________ tcp_port = 59859, proc_name = 's2', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_return_value_on_failure(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert info.terminate(timeout=-1) == -1 E assert 0 == -1 E + where 0 = terminate(timeout=-1) E + where terminate = .terminate tests/test_process_termination.py:91: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s2$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 59859 process 's2' started pid=1573391 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s2 process startup detected ______________________________________________________________________________________________________________________________________ test_return_value_on_failure[s3] ______________________________________________________________________________________________________________________________________ tcp_port = 52267, proc_name = 's3', xprocess = @pytest.mark.parametrize("proc_name", ["s1", "s2", "s3"]) def test_return_value_on_failure(tcp_port, proc_name, xprocess): class Starter(ProcessStarter): pattern = "started" args = [sys.executable, server_path, tcp_port] xprocess.ensure(proc_name, Starter) info = xprocess.getinfo(proc_name) > assert info.terminate(timeout=-1) == -1 E assert 0 == -1 E + where 0 = terminate(timeout=-1) E + where terminate = .terminate tests/test_process_termination.py:91: AssertionError -------------------------------------------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------------------------------------------- /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.pytest_cache/d/.xprocess/s3$ /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/.testenv/bin/python3 /home/udu/aports/community/py3-pytest-xprocess/src/pytest-xprocess-0.23.0/tests/server.py 52267 process 's3' started pid=1573494 0 , % /.%,@%@._%%# #/%/ % 1 , % /.%,@%@._%%# #/%/ % 2 , % /.%,@%@._%%# #/%/ % 3 , % /.%,@%@._%%# #/%/ % 4 , % /.%,@%@._%%# #/%/ % 5 , % /.%,@%@._%%# #/%/ % 6 , % /.%,@%@._%%# #/%/ % 7 , % /.%,@%@._%%# #/%/ % 8 , % /.%,@%@._%%# #/%/ % 9 , % /.%,@%@._%%# #/%/ % Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū Ê�æ�pP��çîöē�P��adåráøū started s3 process startup detected ========================================================================================================================================== short test summary info =========================================================================================================================================== FAILED tests/test_callback.py::test_callback_success[s1] - assert False FAILED tests/test_callback.py::test_callback_success[s2] - assert False FAILED tests/test_callback.py::test_callback_success[s3] - assert False FAILED tests/test_functional_workflow.py::test_functional_work_flow - Failed: nomatch: '*LIVE*' FAILED tests/test_interruption_clean_up.py::test_interruption_does_not_cleanup - Failed: nomatch: '*LIVE*' FAILED tests/test_process_initialization.py::test_servers_start[s1] - assert False FAILED tests/test_process_initialization.py::test_servers_start[s2] - assert False FAILED tests/test_process_initialization.py::test_servers_start[s3] - assert False FAILED tests/test_process_initialization.py::test_ensure_not_restart[s1] - TimeoutError: The provided start pattern started could not be matched within the specified time interval of 120 seconds FAILED tests/test_process_initialization.py::test_ensure_not_restart[s2] - TimeoutError: The provided start pattern started could not be matched within the specified time interval of 120 seconds FAILED tests/test_process_initialization.py::test_ensure_not_restart[s3] - TimeoutError: The provided start pattern started could not be matched within the specified time interval of 120 seconds FAILED tests/test_process_initialization.py::test_startup_detection_max_read_lines[s1-started-21] - assert False FAILED tests/test_process_initialization.py::test_startup_detection_max_read_lines[s2-spam, bacon, eggs-30] - assert False FAILED tests/test_process_initialization.py::test_startup_detection_max_read_lines[s3-finally started-130] - assert False FAILED tests/test_process_initialization.py::test_popen_kwargs[s1] - assert False FAILED tests/test_process_initialization.py::test_popen_kwargs[s2] - assert False FAILED tests/test_process_initialization.py::test_popen_kwargs[s3] - assert False FAILED tests/test_process_termination.py::test_clean_shutdown[s1] - assert False FAILED tests/test_process_termination.py::test_clean_shutdown[s2] - assert False FAILED tests/test_process_termination.py::test_clean_shutdown[s3] - assert False FAILED tests/test_process_termination.py::test_terminate_only_parent[s1] - psutil.NoSuchProcess: process PID not found (pid=1572824) FAILED tests/test_process_termination.py::test_terminate_only_parent[s2] - psutil.NoSuchProcess: process PID not found (pid=1572846) FAILED tests/test_process_termination.py::test_terminate_only_parent[s3] - psutil.NoSuchProcess: process PID not found (pid=1572869) FAILED tests/test_process_termination.py::test_sigkill_after_failed_sigterm[s1] - psutil.NoSuchProcess: process PID not found (pid=1572915) FAILED tests/test_process_termination.py::test_sigkill_after_failed_sigterm[s2] - psutil.NoSuchProcess: process PID not found (pid=1572978) FAILED tests/test_process_termination.py::test_sigkill_after_failed_sigterm[s3] - psutil.NoSuchProcess: process PID not found (pid=1573193) FAILED tests/test_process_termination.py::test_return_value_on_failure[s1] - assert 0 == -1 FAILED tests/test_process_termination.py::test_return_value_on_failure[s2] - assert 0 == -1 FAILED tests/test_process_termination.py::test_return_value_on_failure[s3] - assert 0 == -1 ================================================================================================================================= 29 failed, 16 passed in 390.63s (0:06:30) ==================================================================================================================================