tmux-python / tmux-python/libtmux
Tests failing on armv7l
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 127
- Avg merge
- 2h 13m
- Merged PRs (30d)
- 1
Description
I am packaging libtmux for openSUSE. Unfortunately the tests fail on armv7l:
[ 63s] =================================== FAILURES ===================================
[ 63s] ______________________________ test_capture_pane _______________________________
[ 63s]
[ 63s] session = Session($1 libtmux_xqmt86pw)
[ 63s]
[ 63s] def test_capture_pane(session: Session) -> None:
[ 63s] env = shutil.which("env")
[ 63s] assert env is not None, "Cannot find usable `env` in PATH."
[ 63s]
[ 63s] session.new_window(
[ 63s] attach=True,
[ 63s] window_name="capture_pane",
[ 63s] window_shell=f"{env} PS1='$ ' sh",
[ 63s] )
[ 63s] pane = session.attached_window.attached_pane
[ 63s] assert pane is not None
[ 63s] pane_contents = "\n".join(pane.capture_pane())
[ 63s] assert pane_contents == "$"
[ 63s] pane.send_keys(
[ 63s] r'printf "\n%s\n" "Hello World !"', literal=True, suppress_history=False
[ 63s] )
[ 63s] pane_contents = "\n".join(pane.capture_pane())
[ 63s] > assert pane_contents == r'$ printf "\n%s\n" "Hello World !"{}'.format(
[ 63s] "\n\nHello World !\n$"
[ 63s] )
[ 63s] E assert '$ printf "\\...ello World !"' == '$ printf "\\...lo World !\n$'
[ 63s] E - $ printf "\n%s\n" "Hello World !"
[ 63s] E ? -
[ 63s] E + $ printf "\n%s\n" "Hello World !"
[ 63s] E -
[ 63s] E - Hello World !
[ 63s] E - $
[ 63s]
[ 63s] tests/legacy_api/test_pane.py:86: AssertionError
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/legacy_api/test_pane.py, especially test_capture_pane, and reproduce the failure on armv7l using the reported environment. Compare the captured pane output with the assertion and identify a project-appropriate fix or test adjustment; done means the test passes without breaking the expected output elsewhere.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, shell
- Domain
- cli, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100