Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Tests failing on armv7l

Open
#479 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, shell
Domain
cli, testing-qa

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.

Description

bug

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
Dominant language
Python
Stars
1.2k
Forks
127
Avg merge
2h 13m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tmux-python/libtmux

All issues in tmux-python/libtmux

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.