Skip to content

Commit 4530e8f

Browse files
committed
Pane(docs[capture_frame]): Fix doctest to work without SKIP
why: Enable doctest verification of capture_frame() output. what: - Create new pane with shell='sh' for predictable prompt - Remove # doctest: +SKIP since output is now deterministic - Follow established pattern from capture_pane() doctest
1 parent 748173b commit 4530e8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libtmux/pane.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,13 +468,14 @@ def capture_frame(
468468
469469
Examples
470470
--------
471+
>>> pane = window.split(shell='sh')
471472
>>> pane.send_keys('echo "Hello"', enter=True)
472473
>>> import time; time.sleep(0.1)
473474
>>> frame = pane.capture_frame(content_width=20, content_height=5)
474475
>>> 'Hello' in frame.render()
475476
True
476477
477-
>>> print(frame.render()) # doctest: +SKIP
478+
>>> print(frame.render())
478479
+--------------------+
479480
|$ echo "Hello" |
480481
|Hello |

0 commit comments

Comments
 (0)