diff --git a/test/irb/helper.rb b/test/irb/helper.rb index bbdb16eed0..e281b8e2f6 100644 --- a/test/irb/helper.rb +++ b/test/irb/helper.rb @@ -87,6 +87,10 @@ module TestIRB omit "Integration tests require PTY." end + if ruby_core? + omit "This test works only under ruby/irb" + end + @envs = {} end diff --git a/test/irb/test_debug_cmd.rb b/test/irb/test_debug_cmd.rb index d4cd87c750..35239364ba 100644 --- a/test/irb/test_debug_cmd.rb +++ b/test/irb/test_debug_cmd.rb @@ -10,10 +10,6 @@ module TestIRB def setup super - if ruby_core? - omit "This test works only under ruby/irb" - end - if RUBY_ENGINE == 'truffleruby' omit "This test runs with ruby/debug, which doesn't work with truffleruby" end diff --git a/test/irb/test_history.rb b/test/irb/test_history.rb index 489ae2f3af..39f9e82750 100644 --- a/test/irb/test_history.rb +++ b/test/irb/test_history.rb @@ -210,14 +210,6 @@ module TestIRB end class NestedIRBHistoryTest < IntegrationTestCase - def setup - super - - if ruby_core? - omit "This test works only under ruby/irb" - end - end - def test_history_saving_with_nested_sessions write_history ""