From d06d4560a1196c72831fe59faa698d6672883448 Mon Sep 17 00:00:00 2001 From: jethrodaniel Date: Tue, 11 Aug 2020 21:32:44 -0500 Subject: [PATCH] [ruby/irb] update test/irb/test_init.rb to avoid useless eval Co-authored-by: Nobuyoshi Nakada https://github.com/ruby/irb/commit/2dfdc031ec --- test/irb/test_init.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/irb/test_init.rb b/test/irb/test_init.rb index ade2fcb392..203108ef72 100644 --- a/test/irb/test_init.rb +++ b/test/irb/test_init.rb @@ -73,11 +73,11 @@ module TestIRB assert IRB.conf[:USE_COLORIZE] ENV['NO_COLOR'] = 'true' - IRB.setup(eval("__FILE__")) + IRB.setup(__FILE__) refute IRB.conf[:USE_COLORIZE] ENV['NO_COLOR'] = nil - IRB.setup(eval("__FILE__")) + IRB.setup(__FILE__) assert IRB.conf[:USE_COLORIZE] ensure ENV['NO_COLOR'] = orig