== Python: Python 3.11.13 on x86_64, ldd (GNU libc) 2.34
== Verify wheelhouse checksums
== Offline install (no index)
Looking in links: /src/wheelhouse
Processing /src/wheelhouse/euporie_cvepatched-2.10.4.post1-py3-none-any.whl
Processing /src/wheelhouse/aiohttp-3.14.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Processing /src/wheelhouse/fastjsonschema-2.22.2-py3-none-any.whl
Processing /src/wheelhouse/flatlatex-0.15-py3-none-any.whl
Processing /src/wheelhouse/fsspec-2026.9.0-py3-none-any.whl
Processing /src/wheelhouse/idna-3.20-py3-none-any.whl
Processing /src/wheelhouse/imagesize-1.5.0-py2.py3-none-any.whl
Processing /src/wheelhouse/jupyter_client-8.10.0-py3-none-any.whl
Processing /src/wheelhouse/jupytext-1.19.6-py3-none-any.whl
Processing /src/wheelhouse/linkify_it_py-2.2.0-py3-none-any.whl
Processing /src/wheelhouse/markdown_it_py-3.0.0-py3-none-any.whl
Processing /src/wheelhouse/mdit_py_plugins-0.4.2-py3-none-any.whl
Processing /src/wheelhouse/nbformat-5.11.1-py3-none-any.whl
Processing /src/wheelhouse/pillow-13.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Processing /src/wheelhouse/platformdirs-3.11.0-py3-none-any.whl
Processing /src/wheelhouse/prompt_toolkit-3.0.53-py3-none-any.whl
Processing /src/wheelhouse/pygments-2.21.0-py3-none-any.whl
Processing /src/wheelhouse/pyperclip-1.11.0-py3-none-any.whl
Processing /src/wheelhouse/python_code_minimap-0.1.1-py3-none-any.whl
Processing /src/wheelhouse/sixelcrop-0.1.9-py3-none-any.whl
Processing /src/wheelhouse/timg-1.1.6-py3-none-any.whl
Processing /src/wheelhouse/tornado-6.6-cp311-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Processing /src/wheelhouse/universal_pathlib-0.2.6-py3-none-any.whl
Processing /src/wheelhouse/ipykernel-7.4.0-py3-none-any.whl
Processing /src/wheelhouse/aiohappyeyeballs-2.7.1-py3-none-any.whl
Processing /src/wheelhouse/aiosignal-1.4.0-py3-none-any.whl
Processing /src/wheelhouse/attrs-26.1.0-py3-none-any.whl
Processing /src/wheelhouse/frozenlist-1.8.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Processing /src/wheelhouse/multidict-7.2.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Processing /src/wheelhouse/propcache-0.5.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Processing /src/wheelhouse/typing_extensions-4.16.0-py3-none-any.whl
Processing /src/wheelhouse/yarl-1.25.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Processing /src/wheelhouse/regex-2026.9.29-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Processing /src/wheelhouse/comm-0.2.3-py3-none-any.whl
Processing /src/wheelhouse/debugpy-1.8.22-py2.py3-none-any.whl
Processing /src/wheelhouse/ipython-9.17.1-py3-none-any.whl
Processing /src/wheelhouse/jupyter_core-5.9.1-py3-none-any.whl
Processing /src/wheelhouse/matplotlib_inline-0.2.2-py3-none-any.whl
Processing /src/wheelhouse/nest_asyncio2-1.7.4-py3-none-any.whl
Processing /src/wheelhouse/packaging-26.3-py3-none-any.whl
Processing /src/wheelhouse/pyzmq-27.2.0-cp311-cp311-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
Processing /src/wheelhouse/traitlets-5.16.1-py3-none-any.whl
Processing /src/wheelhouse/python_dateutil-3.0.0-py2.py3-none-any.whl
Processing /src/wheelhouse/pyyaml-6.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Processing /src/wheelhouse/mdurl-0.1.2-py3-none-any.whl
Processing /src/wheelhouse/jsonschema-4.26.0-py3-none-any.whl
Processing /src/wheelhouse/wcwidth-0.9.4-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Processing /src/wheelhouse/ipython_pygments_lexers-1.1.1-py3-none-any.whl
Processing /src/wheelhouse/jedi-0.20.1-py2.py3-none-any.whl
Processing /src/wheelhouse/pexpect-4.9.0-py2.py3-none-any.whl
Processing /src/wheelhouse/psutil-7.2.2-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl
Processing /src/wheelhouse/stack_data-0.6.3-py3-none-any.whl
Processing /src/wheelhouse/jsonschema_specifications-2025.9.1-py3-none-any.whl
Processing /src/wheelhouse/referencing-0.37.0-py3-none-any.whl
Processing /src/wheelhouse/rpds_py-2026.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Processing /src/wheelhouse/six-1.17.0-py2.py3-none-any.whl
Processing /src/wheelhouse/tzdata-2026.6-py2.py3-none-any.whl
Processing /src/wheelhouse/parso-0.8.7-py2.py3-none-any.whl
Processing /src/wheelhouse/ptyprocess-0.7.0-py2.py3-none-any.whl
Processing /src/wheelhouse/executing-2.3.0-py3-none-any.whl
Processing /src/wheelhouse/asttokens-3.0.2-py3-none-any.whl
Processing /src/wheelhouse/pure_eval-0.2.4-py3-none-any.whl
Installing collected packages: pyperclip, pure-eval, ptyprocess, wcwidth, tzdata, typing_extensions, traitlets, tornado, sixelcrop, six, rpds-py, regex, pyzmq, pyyaml, python-code-minimap, pygments, psutil, propcache, platformdirs, pillow, pexpect, parso, packaging, nest-asyncio2, multidict, mdurl, linkify-it-py, imagesize, idna, fsspec, frozenlist, fastjsonschema, executing, debugpy, comm, attrs, asttokens, aiohappyeyeballs, yarl, universal-pathlib, timg, stack_data, referencing, python-dateutil, prompt-toolkit, matplotlib-inline, markdown-it-py, jupyter-core, jedi, ipython-pygments-lexers, flatlatex, aiosignal, mdit-py-plugins, jupyter-client, jsonschema-specifications, ipython, aiohttp, jsonschema, ipykernel, nbformat, jupytext, euporie-cvepatched
Successfully installed aiohappyeyeballs-2.7.1 aiohttp-3.14.5 aiosignal-1.4.0 asttokens-3.0.2 attrs-26.1.0 comm-0.2.3 debugpy-1.8.22 euporie-cvepatched-2.10.4.post1 executing-2.3.0 fastjsonschema-2.22.2 flatlatex-0.15 frozenlist-1.8.0 fsspec-2026.9.0 idna-3.20 imagesize-1.5.0 ipykernel-7.4.0 ipython-9.17.1 ipython-pygments-lexers-1.1.1 jedi-0.20.1 jsonschema-4.26.0 jsonschema-specifications-2025.9.1 jupyter-client-8.10.0 jupyter-core-5.9.1 jupytext-1.19.6 linkify-it-py-2.2.0 markdown-it-py-3.0.0 matplotlib-inline-0.2.2 mdit-py-plugins-0.4.2 mdurl-0.1.2 multidict-7.2.1 nbformat-5.11.1 nest-asyncio2-1.7.4 packaging-26.3 parso-0.8.7 pexpect-4.9.0 pillow-13.0.0 platformdirs-3.11.0 prompt-toolkit-3.0.53 propcache-0.5.4 psutil-7.2.2 ptyprocess-0.7.0 pure-eval-0.2.4 pygments-2.21.0 pyperclip-1.11.0 python-code-minimap-0.1.1 python-dateutil-3.0.0 pyyaml-6.0.3 pyzmq-27.2.0 referencing-0.37.0 regex-2026.9.29 rpds-py-2026.9.1 six-1.17.0 sixelcrop-0.1.9 stack_data-0.6.3 timg-1.1.6 tornado-6.6 traitlets-5.16.1 typing_extensions-4.16.0 tzdata-2026.6 universal-pathlib-0.2.6 wcwidth-0.9.4 yarl-1.25.1
No broken requirements found.
== Smoke checks
euporie-cvepatched 2.10.4.post1
euporie-notebook 2.10.4.post1
Available kernels:
  python3    /opt/venv/share/jupyter/kernels/python3
== Test-suite
Looking in links: /testwh, /src/wheelhouse
Processing /testwh/pytest-9.2.0-py3-none-any.whl
Processing /testwh/pytest_asyncio-1.4.1-py3-none-any.whl
Processing /testwh/html2text-2025.4.15-py3-none-any.whl
Processing /testwh/pyte-0.8.2-py3-none-any.whl
Processing /testwh/pipdeptree-3.1.1-py3-none-any.whl
Processing /testwh/python_magic-0.4.27-py2.py3-none-any.whl
Processing /testwh/iniconfig-2.3.1-py3-none-any.whl
Requirement already satisfied: packaging>=24 in /opt/venv/lib64/python3.11/site-packages (from pytest) (26.3)
Processing /testwh/pluggy-1.7.0-py3-none-any.whl
Requirement already satisfied: pygments>=2.15 in /opt/venv/lib64/python3.11/site-packages (from pytest) (2.21.0)
Requirement already satisfied: typing-extensions>=4.12 in /opt/venv/lib64/python3.11/site-packages (from pytest-asyncio) (4.16.0)
Requirement already satisfied: wcwidth in /opt/venv/lib64/python3.11/site-packages (from pyte) (0.9.4)
Installing collected packages: python-magic, pyte, pluggy, pipdeptree, iniconfig, html2text, pytest, pytest-asyncio
Successfully installed html2text-2025.4.15 iniconfig-2.3.1 pipdeptree-3.1.1 pluggy-1.7.0 pyte-0.8.2 pytest-9.2.0 pytest-asyncio-1.4.1 python-magic-0.4.27
Warning!!! Duplicate package metadata found:
"/opt/venv/lib/python3.11/site-packages"
  wcwidth                          0.9.4            (using 0.9.4, "/opt/venv/lib64/python3.11/site-packages")
  jupyter_core                     5.9.1            (using 5.9.1, "/opt/venv/lib64/python3.11/site-packages")
  tornado                          6.6              (using 6.6, "/opt/venv/lib64/python3.11/site-packages")
  setuptools                       65.5.1           (using 65.5.1, "/opt/venv/lib64/python3.11/site-packages")
  ipython                          9.17.1           (using 9.17.1, "/opt/venv/lib64/python3.11/site-packages")
  prompt_toolkit                   3.0.53           (using 3.0.53, "/opt/venv/lib64/python3.11/site-packages")
  mdit-py-plugins                  0.4.2            (using 0.4.2, "/opt/venv/lib64/python3.11/site-packages")
  pluggy                           1.7.0            (using 1.7.0, "/opt/venv/lib64/python3.11/site-packages")
  platformdirs                     3.11.0           (using 3.11.0, "/opt/venv/lib64/python3.11/site-packages")
  python-dateutil                  3.0.0            (using 3.0.0, "/opt/venv/lib64/python3.11/site-packages")
  markdown-it-py                   3.0.0            (using 3.0.0, "/opt/venv/lib64/python3.11/site-packages")
  PyYAML                           6.0.3            (using 6.0.3, "/opt/venv/lib64/python3.11/site-packages")
  aiohttp                          3.14.5           (using 3.14.5, "/opt/venv/lib64/python3.11/site-packages")
  jupyter_client                   8.10.0           (using 8.10.0, "/opt/venv/lib64/python3.11/site-packages")
  packaging                        26.3             (using 26.3, "/opt/venv/lib64/python3.11/site-packages")
  attrs                            26.1.0           (using 26.1.0, "/opt/venv/lib64/python3.11/site-packages")
  python-code-minimap              0.1.1            (using 0.1.1, "/opt/venv/lib64/python3.11/site-packages")
  ipython_pygments_lexers          1.1.1            (using 1.1.1, "/opt/venv/lib64/python3.11/site-packages")
  pip                              22.3.1           (using 22.3.1, "/opt/venv/lib64/python3.11/site-packages")
  universal_pathlib                0.2.6            (using 0.2.6, "/opt/venv/lib64/python3.11/site-packages")
  six                              1.17.0           (using 1.17.0, "/opt/venv/lib64/python3.11/site-packages")
  pyzmq                            27.2.0           (using 27.2.0, "/opt/venv/lib64/python3.11/site-packages")
  traitlets                        5.16.1           (using 5.16.1, "/opt/venv/lib64/python3.11/site-packages")
  parso                            0.8.7            (using 0.8.7, "/opt/venv/lib64/python3.11/site-packages")
  asttokens                        3.0.2            (using 3.0.2, "/opt/venv/lib64/python3.11/site-packages")
  pyperclip                        1.11.0           (using 1.11.0, "/opt/venv/lib64/python3.11/site-packages")
  regex                            2026.9.29        (using 2026.9.29, "/opt/venv/lib64/python3.11/site-packages")
  idna                             3.20             (using 3.20, "/opt/venv/lib64/python3.11/site-packages")
  ipykernel                        7.4.0            (using 7.4.0, "/opt/venv/lib64/python3.11/site-packages")
  fastjsonschema                   2.22.2           (using 2.22.2, "/opt/venv/lib64/python3.11/site-packages")
  flatlatex                        0.15             (using 0.15, "/opt/venv/lib64/python3.11/site-packages")
  yarl                             1.25.1           (using 1.25.1, "/opt/venv/lib64/python3.11/site-packages")
  psutil                           7.2.2            (using 7.2.2, "/opt/venv/lib64/python3.11/site-packages")
  imagesize                        1.5.0            (using 1.5.0, "/opt/venv/lib64/python3.11/site-packages")
  mdurl                            0.1.2            (using 0.1.2, "/opt/venv/lib64/python3.11/site-packages")
  multidict                        7.2.1            (using 7.2.1, "/opt/venv/lib64/python3.11/site-packages")
  pyte                             0.8.2            (using 0.8.2, "/opt/venv/lib64/python3.11/site-packages")
  pytest                           9.2.0            (using 9.2.0, "/opt/venv/lib64/python3.11/site-packages")
  debugpy                          1.8.22           (using 1.8.22, "/opt/venv/lib64/python3.11/site-packages")
  jsonschema                       4.26.0           (using 4.26.0, "/opt/venv/lib64/python3.11/site-packages")
  aiohappyeyeballs                 2.7.1            (using 2.7.1, "/opt/venv/lib64/python3.11/site-packages")
  timg                             1.1.6            (using 1.1.6, "/opt/venv/lib64/python3.11/site-packages")
  ptyprocess                       0.7.0            (using 0.7.0, "/opt/venv/lib64/python3.11/site-packages")
  typing_extensions                4.16.0           (using 4.16.0, "/opt/venv/lib64/python3.11/site-packages")
  pillow                           13.0.0           (using 13.0.0, "/opt/venv/lib64/python3.11/site-packages")
  fsspec                           2026.9.0         (using 2026.9.0, "/opt/venv/lib64/python3.11/site-packages")
  pytest-asyncio                   1.4.1            (using 1.4.1, "/opt/venv/lib64/python3.11/site-packages")
  nest-asyncio2                    1.7.4            (using 1.7.4, "/opt/venv/lib64/python3.11/site-packages")
  rpds-py                          2026.9.1         (using 2026.9.1, "/opt/venv/lib64/python3.11/site-packages")
  propcache                        0.5.4            (using 0.5.4, "/opt/venv/lib64/python3.11/site-packages")
  euporie-cvepatched               2.10.4.post1     (using 2.10.4.post1, "/opt/venv/lib64/python3.11/site-packages")
  pure_eval                        0.2.4            (using 0.2.4, "/opt/venv/lib64/python3.11/site-packages")
  executing                        2.3.0            (using 2.3.0, "/opt/venv/lib64/python3.11/site-packages")
  comm                             0.2.3            (using 0.2.3, "/opt/venv/lib64/python3.11/site-packages")
  pipdeptree                       3.1.1            (using 3.1.1, "/opt/venv/lib64/python3.11/site-packages")
  jupytext                         1.19.6           (using 1.19.6, "/opt/venv/lib64/python3.11/site-packages")
  frozenlist                       1.8.0            (using 1.8.0, "/opt/venv/lib64/python3.11/site-packages")
  html2text                        2025.4.15        (using 2025.4.15, "/opt/venv/lib64/python3.11/site-packages")
  iniconfig                        2.3.1            (using 2.3.1, "/opt/venv/lib64/python3.11/site-packages")
  jedi                             0.20.1           (using 0.20.1, "/opt/venv/lib64/python3.11/site-packages")
  linkify-it-py                    2.2.0            (using 2.2.0, "/opt/venv/lib64/python3.11/site-packages")
  Pygments                         2.21.0           (using 2.21.0, "/opt/venv/lib64/python3.11/site-packages")
  matplotlib-inline                0.2.2            (using 0.2.2, "/opt/venv/lib64/python3.11/site-packages")
  referencing                      0.37.0           (using 0.37.0, "/opt/venv/lib64/python3.11/site-packages")
  pexpect                          4.9.0            (using 4.9.0, "/opt/venv/lib64/python3.11/site-packages")
  sixelcrop                        0.1.9            (using 0.1.9, "/opt/venv/lib64/python3.11/site-packages")
  stack-data                       0.6.3            (using 0.6.3, "/opt/venv/lib64/python3.11/site-packages")
  nbformat                         5.11.1           (using 5.11.1, "/opt/venv/lib64/python3.11/site-packages")
  python-magic                     0.4.27           (using 0.4.27, "/opt/venv/lib64/python3.11/site-packages")
  tzdata                           2026.6           (using 2026.6, "/opt/venv/lib64/python3.11/site-packages")
  aiosignal                        1.4.0            (using 1.4.0, "/opt/venv/lib64/python3.11/site-packages")
  jsonschema-specifications        2025.9.1         (using 2025.9.1, "/opt/venv/lib64/python3.11/site-packages")
NOTE: This warning isn't a failure warning.
------------------------------------------------------------------------
============================= test session starts ==============================
platform linux -- Python 3.11.13, pytest-9.2.0, pluggy-1.7.0
rootdir: /src
configfile: pyproject.toml
plugins: asyncio-1.4.1
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
collected 646 items

tests/cvepatched/test_cli.py ................                            [  2%]
tests/cvepatched/test_dependencies.py .................................. [  7%]
........................................................................ [ 18%]
........................................................................ [ 30%]
.........................................                                [ 36%]
tests/cvepatched/test_kernel_execution.py FFFF                           [ 36%]
tests/cvepatched/test_licenses.py ...................................... [ 42%]
........................................................................ [ 54%]
...............                                                          [ 56%]
tests/cvepatched/test_notebook_io.py ......                              [ 57%]
tests/cvepatched/test_security.py ...................................... [ 63%]
........................................................................ [ 74%]
..........ss                                                             [ 76%]
tests/cvepatched/test_tui_editing.py .FFFFF..F                           [ 77%]
tests/cvepatched/test_tui_mouse.py ............                          [ 79%]
tests/test_async_utils.py ............                                   [ 81%]
tests/test_core_comm_base.py ........                                    [ 82%]
tests/test_core_comm_ipywidgets.py .......                               [ 83%]
tests/test_core_comm_registry.py ...                                     [ 84%]
tests/test_core_commands.py .........                                    [ 85%]
tests/test_core_completions.py ...                                       [ 85%]
tests/test_core_convert_datum.py .......                                 [ 86%]
tests/test_core_convert_formats_markdown.py .                            [ 87%]
tests/test_core_convert_mime.py ..                                       [ 87%]
tests/test_core_convert_utils.py .                                       [ 87%]
tests/test_core_current.py ..                                            [ 87%]
tests/test_core_data_structures.py .....                                 [ 88%]
tests/test_core_filters.py ..                                            [ 89%]
tests/test_core_ft_ansi.py ..........                                    [ 90%]
tests/test_core_ft_html.py ..............                                [ 92%]
tests/test_core_ft_utils.py ...................                          [ 95%]
tests/test_core_layout_containers.py .........                           [ 97%]
tests/test_core_lexers.py ....                                           [ 97%]
tests/test_core_pygments.py ..                                           [ 97%]
tests/test_core_style.py ......                                          [ 98%]
tests/test_core_utils.py ...                                             [ 99%]
tests/test_core_validation.py ....                                       [100%]

=================================== FAILURES ===================================
__________________________ test_run_and_save_outputs ___________________________

tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_run_and_save_outputs0')
home = PosixPath('/tmp/pytest-of-root/pytest-0/test_run_and_save_outputs0/home')

    def test_run_and_save_outputs(tmp_path: Path, home: Path) -> None:
        """Cells are executed by the Jupyter kernel and outputs are saved to the file."""
        path = make_notebook(tmp_path / "run.ipynb", [
            "print(sum(range(10)))",
            "{'answer': 6 * 7}",
            "import sys; sys.version_info[:2] >= (3, 11)",
        ])
>       result = _run_preview(path, home)
                 ^^^^^^^^^^^^^^^^^^^^^^^^

tests/cvepatched/test_kernel_execution.py:34: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/cvepatched/test_kernel_execution.py:20: in _run_preview
    return subprocess.run(
/usr/lib64/python3.11/subprocess.py:550: in run
    stdout, stderr = process.communicate(input, timeout=timeout)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib64/python3.11/subprocess.py:1209: in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib64/python3.11/subprocess.py:2116: in _communicate
    self._check_timeout(endtime, orig_timeout, stdout, stderr)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Popen: returncode: -9 args: ['/opt/venv/bin/euporie-preview', '--run', '--s...>
endtime = 3029.114708948, orig_timeout = 120, stdout_seq = []
stderr_seq = [b'Warning: Input is not a terminal (fd=0).\n']
skip_check_and_raise = False

    def _check_timeout(self, endtime, orig_timeout, stdout_seq, stderr_seq,
                       skip_check_and_raise=False):
        """Convenience for checking if a timeout has expired."""
        if endtime is None:
            return
        if skip_check_and_raise or _time() > endtime:
>           raise TimeoutExpired(
                    self.args, orig_timeout,
                    output=b''.join(stdout_seq) if stdout_seq else None,
                    stderr=b''.join(stderr_seq) if stderr_seq else None)
E           subprocess.TimeoutExpired: Command '['/opt/venv/bin/euporie-preview', '--run', '--save', '/tmp/pytest-of-root/pytest-0/test_run_and_save_outputs0/run.ipynb']' timed out after 120 seconds

/usr/lib64/python3.11/subprocess.py:1253: TimeoutExpired
___________________________ test_errors_are_recorded ___________________________

tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_errors_are_recorded0')
home = PosixPath('/tmp/pytest-of-root/pytest-0/test_errors_are_recorded0/home')

    def test_errors_are_recorded(tmp_path: Path, home: Path) -> None:
        """Exceptions raised by cells are stored as Jupyter ``error`` outputs."""
        path = make_notebook(tmp_path / "err.ipynb", ["raise ValueError('boom')"])
>       _run_preview(path, home)

tests/cvepatched/test_kernel_execution.py:48: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/cvepatched/test_kernel_execution.py:20: in _run_preview
    return subprocess.run(
/usr/lib64/python3.11/subprocess.py:550: in run
    stdout, stderr = process.communicate(input, timeout=timeout)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib64/python3.11/subprocess.py:1209: in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib64/python3.11/subprocess.py:2116: in _communicate
    self._check_timeout(endtime, orig_timeout, stdout, stderr)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Popen: returncode: -9 args: ['/opt/venv/bin/euporie-preview', '--run', '--s...>
endtime = 3149.276360627, orig_timeout = 120, stdout_seq = []
stderr_seq = [b'Warning: Input is not a terminal (fd=0).\n']
skip_check_and_raise = False

    def _check_timeout(self, endtime, orig_timeout, stdout_seq, stderr_seq,
                       skip_check_and_raise=False):
        """Convenience for checking if a timeout has expired."""
        if endtime is None:
            return
        if skip_check_and_raise or _time() > endtime:
>           raise TimeoutExpired(
                    self.args, orig_timeout,
                    output=b''.join(stdout_seq) if stdout_seq else None,
                    stderr=b''.join(stderr_seq) if stderr_seq else None)
E           subprocess.TimeoutExpired: Command '['/opt/venv/bin/euporie-preview', '--run', '--save', '/tmp/pytest-of-root/pytest-0/test_errors_are_recorded0/err.ipynb']' timed out after 120 seconds

/usr/lib64/python3.11/subprocess.py:1253: TimeoutExpired
__________________________ test_rich_display_outputs ___________________________

tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_rich_display_outputs0')
home = PosixPath('/tmp/pytest-of-root/pytest-0/test_rich_display_outputs0/home')

    def test_rich_display_outputs(tmp_path: Path, home: Path) -> None:
        """Rich display outputs (HTML, markdown) are captured with all mime types."""
        path = make_notebook(tmp_path / "rich.ipynb", [
            "from IPython.display import HTML, Markdown, display\n"
            "display(HTML('<b>html</b>'))\n"
            "display(Markdown('**md**'))",
        ])
>       _run_preview(path, home)

tests/cvepatched/test_kernel_execution.py:62: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/cvepatched/test_kernel_execution.py:20: in _run_preview
    return subprocess.run(
/usr/lib64/python3.11/subprocess.py:550: in run
    stdout, stderr = process.communicate(input, timeout=timeout)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib64/python3.11/subprocess.py:1209: in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib64/python3.11/subprocess.py:2116: in _communicate
    self._check_timeout(endtime, orig_timeout, stdout, stderr)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Popen: returncode: -9 args: ['/opt/venv/bin/euporie-preview', '--run', '--s...>
endtime = 3269.477592931, orig_timeout = 120, stdout_seq = []
stderr_seq = [b'Warning: Input is not a terminal (fd=0).\n']
skip_check_and_raise = False

    def _check_timeout(self, endtime, orig_timeout, stdout_seq, stderr_seq,
                       skip_check_and_raise=False):
        """Convenience for checking if a timeout has expired."""
        if endtime is None:
            return
        if skip_check_and_raise or _time() > endtime:
>           raise TimeoutExpired(
                    self.args, orig_timeout,
                    output=b''.join(stdout_seq) if stdout_seq else None,
                    stderr=b''.join(stderr_seq) if stderr_seq else None)
E           subprocess.TimeoutExpired: Command '['/opt/venv/bin/euporie-preview', '--run', '--save', '/tmp/pytest-of-root/pytest-0/test_rich_display_outputs0/rich.ipynb']' timed out after 120 seconds

/usr/lib64/python3.11/subprocess.py:1253: TimeoutExpired
_____________________ test_long_output_is_saved_completely _____________________

tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_long_output_is_saved_comp0')
home = PosixPath('/tmp/pytest-of-root/pytest-0/test_long_output_is_saved_comp0/home')

    def test_long_output_is_saved_completely(tmp_path: Path, home: Path) -> None:
        """Long outputs are stored in full in the saved notebook."""
        path = make_notebook(tmp_path / "long.ipynb", ["for i in range(500): print(f'LINE_{i:03d}')"])
>       _run_preview(path, home)

tests/cvepatched/test_kernel_execution.py:72: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/cvepatched/test_kernel_execution.py:20: in _run_preview
    return subprocess.run(
/usr/lib64/python3.11/subprocess.py:550: in run
    stdout, stderr = process.communicate(input, timeout=timeout)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib64/python3.11/subprocess.py:1209: in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib64/python3.11/subprocess.py:2116: in _communicate
    self._check_timeout(endtime, orig_timeout, stdout, stderr)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Popen: returncode: -9 args: ['/opt/venv/bin/euporie-preview', '--run', '--s...>
endtime = 3389.663438402, orig_timeout = 120, stdout_seq = []
stderr_seq = [b'Warning: Input is not a terminal (fd=0).\n']
skip_check_and_raise = False

    def _check_timeout(self, endtime, orig_timeout, stdout_seq, stderr_seq,
                       skip_check_and_raise=False):
        """Convenience for checking if a timeout has expired."""
        if endtime is None:
            return
        if skip_check_and_raise or _time() > endtime:
>           raise TimeoutExpired(
                    self.args, orig_timeout,
                    output=b''.join(stdout_seq) if stdout_seq else None,
                    stderr=b''.join(stderr_seq) if stderr_seq else None)
E           subprocess.TimeoutExpired: Command '['/opt/venv/bin/euporie-preview', '--run', '--save', '/tmp/pytest-of-root/pytest-0/test_long_output_is_saved_comp0/long.ipynb']' timed out after 120 seconds

/usr/lib64/python3.11/subprocess.py:1253: TimeoutExpired
_________________ test_save_unmodified_notebook_is_compatible __________________

tui = <function tui.<locals>._start at 0x7ffff9748220>
sample_notebook = PosixPath('/tmp/pytest-of-root/pytest-0/test_save_unmodified_notebook_0/sample_jupyter.ipynb')

    def test_save_unmodified_notebook_is_compatible(tui, sample_notebook: Path) -> None:
        """Saving a Jupyter notebook without edits keeps every cell, output and metadata."""
        original = json.loads(sample_notebook.read_text())
        s = tui(sample_notebook, startup="Sales analysis")
>       _save_and_quit(s, sample_notebook)

tests/cvepatched/test_tui_editing.py:64: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/cvepatched/test_tui_editing.py:48: in _save_and_quit
    session.wait_until(saved, timeout, "notebook was not saved")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.cvepatched.conftest.TuiSession object at 0x7ffff931ebd0>
predicate = <function _save_and_quit.<locals>.saved at 0x7ffff9314ea0>
timeout = 60.0, message = 'notebook was not saved'

    def wait_until(self, predicate: Callable[[], bool], timeout: float = 30.0, message: str = "") -> None:
        """Wait until ``predicate()`` is true, collecting output meanwhile."""
        end = time.monotonic() + timeout
        while time.monotonic() < end:
            if predicate():
                return
            self.drain(0.2)
>       raise AssertionError(f"{message or 'condition not met'}; screen:\n{self.text()}")
E       AssertionError: notebook was not saved; screen:
E        ⚈  File  Edit  Run  Kernel  Tabs  Settings  Help                                                  sample_jupyter.ipynb 
E       ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐▴
E       │╔═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗│ 
E       │║                                                  Sales analysis                                                   ║│ 
E       │╚═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝│ 
E       │                                                                                                                     │ 
E       │Sample notebook in Jupyter format with various outputs.                                                              │ 
E       └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 
E                                                                                                                               
E        [1] ▏1▕import math                                                                                                     
E            ▏2▕print('hello from jupyter')                                                                                     
E                                                                                                                               
E        [1] hello from jupyter                                                                                                 
E                                                                                                                               
E                                                                                                                               
E        [2] ▏>▕math.pi * 2                                                                                                     
E                                                                                                                               
E        [2] 6.283185307179586                                                                                                  
E                                                                                                                               
E                                                                                                                               
E        [3] ▏1▕from IPython.display import HTML                                                                                
E            ▏2▕HTML('<b>bold</b> table')                                                                                       
E                                                                                                                               
E        [3] bold table                                                                                                         
E                                                                                                                               
E                                                                                                                               
E        [4] ▏1▕from IPython.display import Image                                                                               
E            ▏2▕Image(data=png_bytes)                                                                                           
E                                                                                                                               
E        [4] ▄▄                                                                                                                 
E                                                                                                                               
E                                                                                                                               
E        [5] ▏>▕1 / 0                                                                                                           
E                                                                                                                               
E        [5] ZeroDivisionError: division by zero                                                                                
E            ZeroDivisionError: division by zero                                                                                
E                                                                                                                               
E                                                                                                                               
E        ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ▾
E       ▌^▐▌Cell 1▐                                                                                    ▌Python 3 (ipykernel)▐▌◍▐

tests/cvepatched/conftest.py:127: AssertionError
____________________ test_new_notebook_edit_run_save_reopen ____________________

tui = <function tui.<locals>._start at 0x7ffff9181300>
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_new_notebook_edit_run_sav0')

    @requires_kernel
    def test_new_notebook_edit_run_save_reopen(tui, tmp_path: Path) -> None:
        """Create a notebook, add code and markdown, run, save, then reopen it."""
        path = tmp_path / "analysis.ipynb"
        s = tui(path)
        s.drain(3)
    
        s.send(ENTER, "print(6 * 7)")
        s.escape()
        s.send(CTRL_E)
>       s.wait_for(r"\b42\b")

tests/cvepatched/test_tui_editing.py:95: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.cvepatched.conftest.TuiSession object at 0x7ffff931b050>
pattern = '\\b42\\b', timeout = 30.0

    def wait_for(self, pattern: str, timeout: float = 30.0) -> str:
        """Wait until text matching a regex is displayed on the screen."""
        regex = re.compile(pattern)
        end = time.monotonic() + timeout
        while time.monotonic() < end:
            if m := regex.search(self.text()):
                return m.group(0)
            if not self.proc.isalive():
                break
            self.drain(0.2)
>       raise AssertionError(f"Timed out waiting for {pattern!r}; screen:\n{self.text()}")
E       AssertionError: Timed out waiting for '\\b42\\b'; screen:
E        ⚈  File  Edit  Run  Kernel  Tabs  Settings  Help                                                      * analysis.ipynb 
E       ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐▴
E       │[*] ▏>▕print(6 * 7)                                                                                                  │ 
E       └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                              ▾
E       ▌^▐▌Cell 1▐                                                                                    ▌Python 3 (ipykernel)▐▌◍▐

tests/cvepatched/conftest.py:118: AssertionError
________________________ test_add_and_delete_code_cells ________________________

tui = <function tui.<locals>._start at 0x7ffff91822a0>
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_add_and_delete_code_cells0')

    def test_add_and_delete_code_cells(tui, tmp_path: Path) -> None:
        """Cells are added with ``b`` and deleted with ``dd``."""
        path = make_notebook(tmp_path / "cells.ipynb", ["keep_one = 1", "delete_me = 2", "keep_two = 3"])
        s = tui(path, startup="keep_two")
    
        s.send("j")  # select second cell
        s.send("d", "d")
        s.send("b", ENTER, "added_cell = 4")
        s.escape()
>       _save_and_quit(s, path)

tests/cvepatched/test_tui_editing.py:126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/cvepatched/test_tui_editing.py:48: in _save_and_quit
    session.wait_until(saved, timeout, "notebook was not saved")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.cvepatched.conftest.TuiSession object at 0x7ffff9253650>
predicate = <function _save_and_quit.<locals>.saved at 0x7ffff9314fe0>
timeout = 60.0, message = 'notebook was not saved'

    def wait_until(self, predicate: Callable[[], bool], timeout: float = 30.0, message: str = "") -> None:
        """Wait until ``predicate()`` is true, collecting output meanwhile."""
        end = time.monotonic() + timeout
        while time.monotonic() < end:
            if predicate():
                return
            self.drain(0.2)
>       raise AssertionError(f"{message or 'condition not met'}; screen:\n{self.text()}")
E       AssertionError: notebook was not saved; screen:
E        ⚈  File  Edit  Run  Kernel  Tabs  Settings  Help                                                         * cells.ipynb 
E                                                                                                                              ▴
E        [ ] ▏>▕keep_one = 1                                                                                                    
E                                                                                                                               
E                                                                                                                               
E        [ ] ▏>▕keep_two = 3                                                                                                    
E                                                                                                                               
E       ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ 
E       │[ ] ▏>▕added_cell = 4                                                                                                │ 
E       └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                              ▾
E       ▌^▐▌Cell 3▐                                                                                    ▌Python 3 (ipykernel)▐▌◍▐

tests/cvepatched/conftest.py:127: AssertionError
_____________________ test_markdown_cell_edit_and_convert ______________________

tui = <function tui.<locals>._start at 0x7ffff99c6fc0>
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_markdown_cell_edit_and_co0')

    def test_markdown_cell_edit_and_convert(tui, tmp_path: Path) -> None:
        """Markdown cells can be edited and code cells converted to markdown."""
        path = make_notebook(tmp_path / "md.ipynb", ["# Old heading", "convert me"], cell_type="markdown")
        nb = nbformat.read(path, as_version=4)
        nb.cells[1] = nbformat.v4.new_code_cell("## converted heading")
        nbformat.write(nb, path)
    
        s = tui(path, startup="Old heading")
        s.send(ENTER, "\x01")  # edit mode, select all
        s.send("# New heading", ENTER, ENTER, "*emphasis* text")
        s.escape()
        s.send(CTRL_E)
        s.wait_for("New heading")
    
        s.send("j", "m")  # convert second (code) cell to markdown
>       _save_and_quit(s, path)

tests/cvepatched/test_tui_editing.py:150: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/cvepatched/test_tui_editing.py:48: in _save_and_quit
    session.wait_until(saved, timeout, "notebook was not saved")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.cvepatched.conftest.TuiSession object at 0x7ffffb8d8210>
predicate = <function _save_and_quit.<locals>.saved at 0x7ffff9314360>
timeout = 60.0, message = 'notebook was not saved'

    def wait_until(self, predicate: Callable[[], bool], timeout: float = 30.0, message: str = "") -> None:
        """Wait until ``predicate()`` is true, collecting output meanwhile."""
        end = time.monotonic() + timeout
        while time.monotonic() < end:
            if predicate():
                return
            self.drain(0.2)
>       raise AssertionError(f"{message or 'condition not met'}; screen:\n{self.text()}")
E       AssertionError: notebook was not saved; screen:
E        ⚈  File  Edit  Run  Kernel  Tabs  Settings  Help                                                            * md.ipynb 
E                                                                                                                              ▴
E        ╔═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗  
E        ║                                                    New heading                                                    ║  
E        ╚═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝  
E                                                                                                                               
E        emphasis text                                                                                                          
E                                                                                                                               
E       ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ 
E       │┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓│ 
E       │┃                                                 converted heading                                                 ┃│ 
E       │┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛│ 
E       └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                              ▾
E       ▌^▐▌Cell 2▐                                                                                    ▌Python 3 (ipykernel)▐▌◍▐

tests/cvepatched/conftest.py:127: AssertionError
___________________________ test_python_code_editing ___________________________

tui = <function tui.<locals>._start at 0x7ffff92b3240>
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_python_code_editing0')

    def test_python_code_editing(tui, tmp_path: Path) -> None:
        """Multi-line Python code with indentation is edited and saved verbatim."""
        path = make_notebook(tmp_path / "code.ipynb", [""])
        s = tui(path)
        s.drain(3)
        # Auto-indent inserts the body indentation after the colon
        s.send(ENTER, "def area(r):", ENTER, "return 3.14 * r * r", delay=0.05)
        s.escape()
>       _save_and_quit(s, path)

tests/cvepatched/test_tui_editing.py:167: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/cvepatched/test_tui_editing.py:48: in _save_and_quit
    session.wait_until(saved, timeout, "notebook was not saved")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.cvepatched.conftest.TuiSession object at 0x7ffff9319d50>
predicate = <function _save_and_quit.<locals>.saved at 0x7ffff9842340>
timeout = 60.0, message = 'notebook was not saved'

    def wait_until(self, predicate: Callable[[], bool], timeout: float = 30.0, message: str = "") -> None:
        """Wait until ``predicate()`` is true, collecting output meanwhile."""
        end = time.monotonic() + timeout
        while time.monotonic() < end:
            if predicate():
                return
            self.drain(0.2)
>       raise AssertionError(f"{message or 'condition not met'}; screen:\n{self.text()}")
E       AssertionError: notebook was not saved; screen:
E        ⚈  File  Edit  Run  Kernel  Tabs  Settings  Help                                                          * code.ipynb 
E       ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐▴
E       │[ ] ▏1▕def area(r):                                                                                                  │ 
E       │    ▏2▕    return 3.14 * r * r                                                                                       │ 
E       └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                              ▾
E       ▌^▐▌Cell 1▐                                                                                    ▌Python 3 (ipykernel)▐▌◍▐

tests/cvepatched/conftest.py:127: AssertionError
_____________________________ test_kernel_restart ______________________________

tui = <function tui.<locals>._start at 0x7ffff9842340>
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_kernel_restart0')

    @requires_kernel
    def test_kernel_restart(tui, tmp_path: Path) -> None:
        """Restarting the kernel (``00``) clears its state."""
        path = make_notebook(tmp_path / "restart.ipynb", ["restart_marker = 'VAL'", "print(restart_marker + '_OK')"])
        s = tui(path, startup="restart_marker")
        s.drain(3)
    
        s.send(CTRL_E)
        s.send("j", CTRL_E)
>       s.wait_for("VAL_OK")

tests/cvepatched/test_tui_editing.py:211: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.cvepatched.conftest.TuiSession object at 0x7ffff900fd50>
pattern = 'VAL_OK', timeout = 30.0

    def wait_for(self, pattern: str, timeout: float = 30.0) -> str:
        """Wait until text matching a regex is displayed on the screen."""
        regex = re.compile(pattern)
        end = time.monotonic() + timeout
        while time.monotonic() < end:
            if m := regex.search(self.text()):
                return m.group(0)
            if not self.proc.isalive():
                break
            self.drain(0.2)
>       raise AssertionError(f"Timed out waiting for {pattern!r}; screen:\n{self.text()}")
E       AssertionError: Timed out waiting for 'VAL_OK'; screen:
E        ⚈  File  Edit  Run  Kernel  Tabs  Settings  Help                                                       * restart.ipynb 
E                                                                                                                              ▴
E        [*] ▏>▕restart_marker = 'VAL'                                                                                          
E                                                                                                                               
E       ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ 
E       │[*] ▏>▕print(restart_marker + '_OK')                                                                                 │ 
E       └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                               
E                                                                                                                              ▾
E       ▌^▐▌Cell 2▐                                                                                    ▌Python 3 (ipykernel)▐▌◍▐

tests/cvepatched/conftest.py:118: AssertionError
---------------------- generated xml file: /out/junit.xml ----------------------
=========================== short test summary info ============================
SKIPPED [2] tests/cvepatched/test_security.py:66: no network access
============ 10 failed, 634 passed, 2 skipped in 1357.48s (0:22:37) ============
