Tests failing on armv7l
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- cli, testing-qa
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 1.2k
- 派生
- 127
- 平均合并
- 2 小时 13 分钟
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tmux-python/libtmux 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
tmux-python/libtmux#759 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
tmux-python/libtmux#745 · 2 条评论 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
tmux-python/libtmux#744 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
tmux-python/libtmux#731 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
tmux-python/libtmux#654 ·
查看 tmux-python/libtmux 的全部 Issue
相似的 Issue
-
bug confirmed issue
难度 2/5 1-3 小时 新手友好度 75/100
open-webui/open-webui#30750 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
good first issue
难度 1/5 1 小时以内 新手友好度 90/100