Skip to content

Tests failures when using tmux 3.7 #691

Description

@afh

With the latest and recent release of tmux 3.7 (CHANGES) the following libtmux tests fail:

FAILED tests/test_pane.py::test_join_pane - libtmux.exc.LibTmuxException: break-pane: server exited unexpectedly
FAILED tests/test_pane.py::test_join_pane_horizontal - libtmux.exc.LibTmuxException: break-pane: server exited unexpectedly
FAILED tests/test_pane.py::test_break_pane_basic - libtmux.exc.LibTmuxException: break-pane: server exited unexpectedly
FAILED tests/test_window.py::test_window_rename[rename_with_escapes] - AssertionError: assert 'hello \\\\ wazzup 0' == 'hello \\ wazzup 0'
FAILED tests/test_pane.py::test_break_pane_with_name - AssertionError: assert 'coreutils' == 'my_broken'
Detailed test log output
=================================== FAILURES ===================================
________________________________ test_join_pane ________________________________
[gw1] darwin -- Python 3.13.13 /nix/store/mfkdmplffnbc0av8r6pknl796a6b1r2n-python3-3.13.13/bin/python3.13
tests/test_pane.py:1289: in test_join_pane
    new_window = new_pane.break_pane()
                 ^^^^^^^^^^^^^^^^^^^^^
        new_pane   = <[LibTmuxException('no server running on /private/tmp/tmux-351/libtmux_test6luv7qac') raised in repr()] Pane object at 0x10b62da90>
        pane       = <[LibTmuxException('no server running on /private/tmp/tmux-351/libtmux_test6luv7qac') raised in repr()] Pane object at 0x10b62d6d0>
        session    = Session($1 libtmux_fveud3ah)
        window     = <[LibTmuxException('no server running on /private/tmp/tmux-351/libtmux_test6luv7qac') raised in repr()] Window object at 0x10b62d590>
/nix/store/8mx489rggv1i2mkk9j8gxp7j16djclby-python3.13-libtmux-0.58.1/lib/python3.13/site-packages/libtmux/pane.py:2085: in break_pane
    raise_if_stderr(proc, "break-pane")
        detach     = True
        proc       = <libtmux.common.tmux_cmd object at 0x10b440130>
        self       = <[LibTmuxException('no server running on /private/tmp/tmux-351/libtmux_test6luv7qac') raised in repr()] Pane object at 0x10b62da90>
        tmux_args  = ('-P', '-F#{window_id}', '-d', '-s', '%3')
        window_name = None
/nix/store/8mx489rggv1i2mkk9j8gxp7j16djclby-python3.13-libtmux-0.58.1/lib/python3.13/site-packages/libtmux/common.py:277: in raise_if_stderr
    raise exc.LibTmuxException(
E   libtmux.exc.LibTmuxException: break-pane: server exited unexpectedly
        proc       = <libtmux.common.tmux_cmd object at 0x10b440130>
        subcommand = 'break-pane'
__________________________ test_join_pane_horizontal ___________________________
[gw1] darwin -- Python 3.13.13 /nix/store/mfkdmplffnbc0av8r6pknl796a6b1r2n-python3-3.13.13/bin/python3.13
tests/test_pane.py:1312: in test_join_pane_horizontal
    new_pane.break_pane()
        new_pane   = <[LibTmuxException('no server running on /private/tmp/tmux-351/libtmux_testav3xdoi4') raised in repr()] Pane object at 0x10b62e710>
        pane       = <[LibTmuxException('no server running on /private/tmp/tmux-351/libtmux_testav3xdoi4') raised in repr()] Pane object at 0x10b62e5d0>
        session    = Session($1 libtmux_s5wpu1i4)
        window     = <[LibTmuxException('no server running on /private/tmp/tmux-351/libtmux_testav3xdoi4') raised in repr()] Window object at 0x10b62d590>
/nix/store/8mx489rggv1i2mkk9j8gxp7j16djclby-python3.13-libtmux-0.58.1/lib/python3.13/site-packages/libtmux/pane.py:2085: in break_pane
    raise_if_stderr(proc, "break-pane")
        detach     = True
        proc       = <libtmux.common.tmux_cmd object at 0x10b440590>
        self       = <[LibTmuxException('no server running on /private/tmp/tmux-351/libtmux_testav3xdoi4') raised in repr()] Pane object at 0x10b62e710>
        tmux_args  = ('-P', '-F#{window_id}', '-d', '-s', '%3')
        window_name = None
/nix/store/8mx489rggv1i2mkk9j8gxp7j16djclby-python3.13-libtmux-0.58.1/lib/python3.13/site-packages/libtmux/common.py:277: in raise_if_stderr
    raise exc.LibTmuxException(
E   libtmux.exc.LibTmuxException: break-pane: server exited unexpectedly
        proc       = <libtmux.common.tmux_cmd object at 0x10b440590>
        subcommand = 'break-pane'
____________________________ test_break_pane_basic _____________________________
[gw1] darwin -- Python 3.13.13 /nix/store/mfkdmplffnbc0av8r6pknl796a6b1r2n-python3-3.13.13/bin/python3.13
tests/test_pane.py:1329: in test_break_pane_basic
    new_window = new_pane.break_pane()
                 ^^^^^^^^^^^^^^^^^^^^^
        initial_window_count = 2
        new_pane   = <[LibTmuxException('no server running on /private/tmp/tmux-351/libtmux_testj8qsmo7v') raised in repr()] Pane object at 0x10b932850>
        pane       = <[LibTmuxException('no server running on /private/tmp/tmux-351/libtmux_testj8qsmo7v') raised in repr()] Pane object at 0x10b931bd0>
        session    = Session($1 libtmux_f7csmko8)
        window     = <[LibTmuxException('no server running on /private/tmp/tmux-351/libtmux_testj8qsmo7v') raised in repr()] Window object at 0x10b931a90>
/nix/store/8mx489rggv1i2mkk9j8gxp7j16djclby-python3.13-libtmux-0.58.1/lib/python3.13/site-packages/libtmux/pane.py:2085: in break_pane
    raise_if_stderr(proc, "break-pane")
        detach     = True
        proc       = <libtmux.common.tmux_cmd object at 0x10b6afcb0>
        self       = <[LibTmuxException('no server running on /private/tmp/tmux-351/libtmux_testj8qsmo7v') raised in repr()] Pane object at 0x10b932850>
        tmux_args  = ('-P', '-F#{window_id}', '-d', '-s', '%3')
        window_name = None
/nix/store/8mx489rggv1i2mkk9j8gxp7j16djclby-python3.13-libtmux-0.58.1/lib/python3.13/site-packages/libtmux/common.py:277: in raise_if_stderr
    raise exc.LibTmuxException(
E   libtmux.exc.LibTmuxException: break-pane: server exited unexpectedly
        proc       = <libtmux.common.tmux_cmd object at 0x10b6afcb0>
        subcommand = 'break-pane'
___________________ test_window_rename[rename_with_escapes] ____________________
[gw3] darwin -- Python 3.13.13 /nix/store/mfkdmplffnbc0av8r6pknl796a6b1r2n-python3-3.13.13/bin/python3.13
tests/test_window.py:247: in test_window_rename
    assert window.window_name == window_name_before
E   AssertionError: assert 'hello \\\\ wazzup 0' == 'hello \\ wazzup 0'
E     
E     - hello \ wazzup 0
E     + hello \\ wazzup 0
E     ?        +
        session    = Session($1 libtmux_cpm104j8)
        test_id    = 'rename_with_escapes'
        window     = Window(@2 2:hello \\ wazzup 0, Session($1 libtmux_cpm104j8))
        window_name_after = 'hello \\\\ wazzup 0'
        window_name_before = 'hello \\ wazzup 0'
        window_name_input = 'hello \\ wazzup 0'
__________________________ test_break_pane_with_name ___________________________
[gw1] darwin -- Python 3.13.13 /nix/store/mfkdmplffnbc0av8r6pknl796a6b1r2n-python3-3.13.13/bin/python3.13
tests/test_pane.py:1346: in test_break_pane_with_name
    assert new_window.window_name == "my_broken"
E   AssertionError: assert 'coreutils' == 'my_broken'
E     
E     - my_broken
E     + coreutils
        new_pane   = Pane(%3 Window(@2 2:test_break_name, Session($1 libtmux_1x5rqmza)))
        new_window = Window(@3 3:coreutils, Session($1 libtmux_1x5rqmza))
        pane       = Pane(%2 Window(@2 2:test_break_name, Session($1 libtmux_1x5rqmza)))
        session    = Session($1 libtmux_1x5rqmza)
        window     = Window(@2 2:test_break_name, Session($1 libtmux_1x5rqmza))
=========================== short test summary info ============================
FAILED tests/test_pane.py::test_join_pane - libtmux.exc.LibTmuxException: break-pane: server exited unexpectedly
FAILED tests/test_pane.py::test_join_pane_horizontal - libtmux.exc.LibTmuxException: break-pane: server exited unexpectedly
FAILED tests/test_pane.py::test_break_pane_basic - libtmux.exc.LibTmuxException: break-pane: server exited unexpectedly
FAILED tests/test_window.py::test_window_rename[rename_with_escapes] - AssertionError: assert 'hello \\\\ wazzup 0' == 'hello \\ wazzup 0'
FAILED tests/test_pane.py::test_break_pane_with_name - AssertionError: assert 'coreutils' == 'my_broken'
=================== 5 failed, 877 passed, 11 rerun in 22.71s ===================

What would be helpful for libtmux maintainers to get these resolved?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions