Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* 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
  • Loading branch information...
commit b95a298d7183ec40f43080fd8e5edb53920118d6 1 parent 17c0130
@nobu nobu authored
Showing with 12 additions and 0 deletions.
  1. +5 −0 ChangeLog
  2. +7 −0 test/readline/test_readline.rb
View
5 ChangeLog
@@ -1,3 +1,8 @@
+Fri Apr 27 10:58:17 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/readline/test_readline.rb (setup): avoid affected by user's
+ inputrc file. [ruby-dev:45584][Bug #6357]
+
Fri Apr 27 01:45:05 2012 NARUSE, Yui <naruse@ruby-lang.org>
* thread.c (rb_threadptr_execute_interrupts_common):
View
7 test/readline/test_readline.rb
@@ -36,7 +36,14 @@ class << Readline
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
Please sign in to comment.
Something went wrong with that request. Please try again.