Skip to content

Fix display_document test fails in tty environment#1185

Merged
tompng merged 1 commit into
ruby:masterfrom
tompng:fix_display_document_in_tty
Mar 15, 2026
Merged

Fix display_document test fails in tty environment#1185
tompng merged 1 commit into
ruby:masterfrom
tompng:fix_display_document_in_tty

Conversation

@tompng

@tompng tompng commented Mar 14, 2026

Copy link
Copy Markdown
Member

Fix rake test TEST=test/irb/test_input_method.rb failure in tty environment.

In non-tty environment (example: echo | rake test TEST=test/irb/test_input_method.rb), test passes.
When running in tty environment, document will be directly rendered to console by pager command, and won't be captured by capture_output, so we need to disable pager.

@tompng tompng merged commit 8a56ad0 into ruby:master Mar 15, 2026
40 checks passed
@tompng tompng deleted the fix_display_document_in_tty branch March 15, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants