mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 18:13:58 +02:00
* 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:
parent
664a13b732
commit
0a68f1200b
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue