diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-17 03:25:38 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-17 03:25:38 +0000 |
commit | c1303fbe8a2bd66913d4f4970920d3182c901b0e (patch) | |
tree | 8ed8db542fce9b8fb2a2d539642a4e7d8e1997ab /test | |
parent | 54209dd1728bb161c11bb9f6252481cfe8fdb7f2 (diff) |
merge revision(s) 34255: [Backport #6035]
* test/readline/test_readline.rb (test_completion_proc_empty_result): rescue NoMemoryError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/readline/test_readline.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index 5ae106768b..c5188ad5c6 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -207,10 +207,10 @@ class TestReadline < Test::Unit::TestCase with_temp_stdio do |stdin, stdout| stdin.write("first\t") stdin.flush - actual_text = nil Readline.completion_proc = ->(text) {[]} - line = replace_stdio(stdin.path, stdout.path) { - Readline.readline("> ") + line = nil + replace_stdio(stdin.path, stdout.path) { + assert_nothing_raised(NoMemoryError) {line = Readline.readline("> ")} } assert_equal("first", line) end |