Skip to content

Commit

Permalink
Suppress bell during the test
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jul 18, 2020
1 parent 6f5f15f commit 9f60cee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/readline/test_readline.rb
Expand Up @@ -596,7 +596,14 @@ def test_simple_completion
end
w.write("a\t\n")
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

Expand Down

0 comments on commit 9f60cee

Please sign in to comment.