Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent / flaky test test_capture_pane #484

Open
johanneskastl opened this issue May 17, 2023 · 0 comments
Open

Intermittent / flaky test test_capture_pane #484

johanneskastl opened this issue May 17, 2023 · 0 comments

Comments

@johanneskastl
Copy link

johanneskastl commented May 17, 2023

There is another test that sometimes / intermittently / not reproducibly fails: test_capture_pane

This is for x86_64, i586, armv7l and ppc64.

I know the exact error message would be helpful, but I was too quick in fixing and now I cannot reproduce. I'll supply the error message as soon as the package fails again.

[   64s] =================================== FAILURES ===================================
[   64s] ______________________________ test_capture_pane _______________________________
[   64s] 
[   64s] session = Session($1 libtmux_zv_reb2k)
[   64s] 
[   64s]     def test_capture_pane(session: Session) -> None:
[   64s]         env = shutil.which("env")
[   64s]         assert env is not None, "Cannot find usable `env` in PATH."
[   64s]     
[   64s]         session.new_window(
[   64s]             attach=True,
[   64s]             window_name="capture_pane",
[   64s]             window_shell=f"{env} PS1='$ ' sh",
[   64s]         )
[   64s]         pane = session.attached_window.attached_pane
[   64s]         assert pane is not None
[   64s]         pane_contents = "\n".join(pane.capture_pane())
[   64s]         assert pane_contents == "$"
[   64s]         pane.send_keys(
[   64s]             r'printf "\n%s\n" "Hello World !"', literal=True, suppress_history=False
[   64s]         )
[   64s]         pane_contents = "\n".join(pane.capture_pane())
[   64s] >       assert pane_contents == r'$ printf "\n%s\n" "Hello World !"{}'.format(
[   64s]             "\n\nHello World !\n$"
[   64s]         )
[   64s] E       assert '$ printf "\\...ello World !"' == '$ printf "\\...lo World !\n$'
[   64s] E         - $ printf "\n%s\n" "Hello World !"
[   64s] E         ?                                  -
[   64s] E         + $ printf "\n%s\n" "Hello World !"
[   64s] E         - 
[   64s] E         - Hello World !
[   64s] E         - $
[   64s] 
[   64s] tests/test_pane.py:90: AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant