diff options
| -rw-r--r-- | test/irb/test_irb.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/irb/test_irb.rb b/test/irb/test_irb.rb index 28be744088..3d8044c5a1 100644 --- a/test/irb/test_irb.rb +++ b/test/irb/test_irb.rb @@ -825,6 +825,13 @@ module TestIRB end class BacktraceFilteringTest < TestIRB::IntegrationTestCase + def setup + super + # These tests are sensitive to warnings, so we disable them + original_rubyopt = [ENV["RUBYOPT"], @envs["RUBYOPT"]].compact.join(" ") + @envs["RUBYOPT"] = original_rubyopt + " -W0" + end + def test_backtrace_filtering write_ruby <<~'RUBY' def foo |
