Skip to content

Commit 62f63be

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 2b0b165 commit 62f63be

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
@@ -405,13 +405,14 @@ def capture_frame(
405405
406406
Examples
407407
--------
408+
>>> pane = window.split(shell='sh')
408409
>>> pane.send_keys('echo "Hello"', enter=True)
409410
>>> import time; time.sleep(0.1)
410411
>>> frame = pane.capture_frame(content_width=20, content_height=5)
411412
>>> 'Hello' in frame.render()
412413
True
413414
414-
>>> print(frame.render()) # doctest: +SKIP
415+
>>> print(frame.render())
415416
+--------------------+
416417
|$ echo "Hello" |
417418
|Hello |

0 commit comments

Comments
 (0)