mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress bell during the test
This commit is contained in:
parent
6f5f15f1e4
commit
9f60ceec54
Notes:
git
2020-07-18 19:33:36 +09:00
1 changed files with 8 additions and 1 deletions
|
@ -596,7 +596,14 @@ module BasetestReadline
|
||||||
end
|
end
|
||||||
w.write("a\t\n")
|
w.write("a\t\n")
|
||||||
w.flush
|
w.flush
|
||||||
line = Readline.readline('> ', false)
|
begin
|
||||||
|
stderr = $stderr.dup
|
||||||
|
$stderr.reopen(null)
|
||||||
|
line = Readline.readline('> ', false)
|
||||||
|
ensure
|
||||||
|
$stderr.reopen(stderr)
|
||||||
|
stderr.close
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue