Skip to content

Commit

Permalink
Change debug test workaround to use ENV RUBY_DEBUG_TEST_UI (#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng authored Oct 8, 2024
1 parent bb6a99d commit 9933584
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/irb/input-method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def initialize
#
# See IO#gets for more information.
def gets
puts if @stdout.tty? # workaround for debug compatibility test
# Workaround for debug compatibility test https://github.com/ruby/debug/pull/1100
puts if ENV['RUBY_DEBUG_TEST_UI']

print @prompt
line = @stdin.gets
@line[@line_no += 1] = line
Expand Down

0 comments on commit 9933584

Please sign in to comment.