Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Tests failing on armv7l

Aperta
#479 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python, shell
Ambito
cli, testing-qa

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Python
Stelle
1.2k
Fork
127
Merge medio
2h 13m
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di tmux-python/libtmux

Tutte le issue di tmux-python/libtmux

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.