diff options
author | Stan Lo <stan001212@gmail.com> | 2022-10-25 20:25:49 +0100 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-10-26 10:44:26 -0400 |
commit | 2022470a954ad673b0c08aecaa9a7881188cd105 (patch) | |
tree | 75d87a041f2d860c89ce356c7254ec66b4c28feb /test/irb/test_cmd.rb | |
parent | d889e810f3d9061fdab5a21470bf32d078d2b06a (diff) | |
download | ruby-2022470a954ad673b0c08aecaa9a7881188cd105.tar.gz |
[ruby/irb] Suppress warnings
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Diffstat (limited to 'test/irb/test_cmd.rb')
-rw-r--r-- | test/irb/test_cmd.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index e5e3a3fabf..6c03a9de07 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -429,7 +429,7 @@ module TestIRB assert(possible_rdoc_output.any? { |output| output.match?(out) }, "Expect the help command to match one of the possible outputs") ensure # this is the only way to reset the redefined method without coupling the test with its implementation - load "irb/cmd/help.rb" + EnvUtil.suppress_warning { load "irb/cmd/help.rb" } end def test_help_without_rdoc @@ -454,7 +454,7 @@ module TestIRB assert_match(/=> IRB::ExtendCommand::Help\n/, out) ensure # this is the only way to reset the redefined method without coupling the test with its implementation - load "irb/cmd/help.rb" + EnvUtil.suppress_warning { load "irb/cmd/help.rb" } end def test_irb_load |