Suppress bell during the test
This commit is contained in:
parent
6f5f15f1e4
commit
9f60ceec54
Notes:
git
2020-07-18 19:33:36 +09:00
@ -596,7 +596,14 @@ module BasetestReadline
|
|||||||
end
|
end
|
||||||
w.write("a\t\n")
|
w.write("a\t\n")
|
||||||
w.flush
|
w.flush
|
||||||
|
begin
|
||||||
|
stderr = $stderr.dup
|
||||||
|
$stderr.reopen(null)
|
||||||
line = Readline.readline('> ', false)
|
line = Readline.readline('> ', false)
|
||||||
|
ensure
|
||||||
|
$stderr.reopen(stderr)
|
||||||
|
stderr.close
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user