* test/readline/test_readline.rb (setup): avoid affected by user's

inputrc file.  [ruby-dev:45584][Bug #6357]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-04-27 01:58:21 +00:00
parent 664a13b732
commit 0a68f1200b
2 changed files with 12 additions and 0 deletions

View file

@ -36,7 +36,14 @@ else
end
class TestReadline < Test::Unit::TestCase
INPUTRC = "INPUTRC"
def setup
@inputrc, ENV[INPUTRC] = ENV[INPUTRC], IO::NULL
end
def teardown
ENV[INPUTRC] = @inputrc
Readline.instance_variable_set("@completion_proc", nil)
end