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

Intermittent errors with tests on i586 (32bit)

Aperta
#481 0 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
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

The failure is in tests/legacy_api/test_test.py, specifically test_function_times_out_no_raise_assert; start by reading that test and the retry_until call it exercises. Reproduce or inspect the timing behavior on 32-bit i586, then make the test reliably validate the timeout and run the affected test.

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

Descrizione

When packaging this for openSUSE Tumbleweed, we get intermittent build errors due to failing tests.

Today this one errored out (using tmux-3.3a) on i586 (32bit):

[   81s] =================================== FAILURES ===================================
[   81s] ___________________ test_function_times_out_no_raise_assert ____________________
[   81s] 
[   81s]     def test_function_times_out_no_raise_assert() -> None:
[   81s]         ini = time()
[   81s]     
[   81s]         def never_true() -> bool:
[   81s]             return False
[   81s]     
[   81s]         assert not retry_until(never_true, 1, raises=False)
[   81s]     
[   81s]         end = time()
[   81s]     
[   81s] >       assert abs((end - ini) - 1.0) < 0.01
[   81s] E       assert 0.011504411697387695 < 0.01
[   81s] E        +  where 0.011504411697387695 = abs(((1679550658.3015473 - 1679550657.2900429) - 1.0))
[   81s] 
[   81s] tests/legacy_api/test_test.py:67: AssertionError
[   81s] =============================== warnings summary ===============================
[...]
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.