We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e97833a commit 2a848b7Copy full SHA for 2a848b7
libtmux/test.py
@@ -68,16 +68,17 @@ def retry_until(
68
Examples
69
--------
70
71
- >>> def f():
72
- ... p = w.attached_pane
+ >>> def fn():
+ ... p = session.attached_window.attached_pane
73
... p.server._update_panes()
74
- ... return p.current_path == pane_path
75
- ...
76
- ... retry(f)
+ ... return p.current_path is not None
+
+ >>> retry_until(fn)
77
+ True
78
79
In pytest:
80
- >>> assert retry(f, raises=False)
81
+ >>> assert retry_until(fn, raises=False)
82
"""
83
ini = time.time()
84
0 commit comments