Skip to content

Commit 3f231b8

Browse files
authored
Change debug test workaround only enabled when output is tty (#949)
1 parent b1ef58a commit 3f231b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/irb/input-method.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def initialize
6767
#
6868
# See IO#gets for more information.
6969
def gets
70-
puts
70+
puts if @stdout.tty? # workaround for debug compatibility test
7171
print @prompt
7272
line = @stdin.gets
7373
@line[@line_no += 1] = line

0 commit comments

Comments
 (0)