diff --git a/test/irb/helper.rb b/test/irb/helper.rb index bbdb16eed..e281b8e2f 100644 --- a/test/irb/helper.rb +++ b/test/irb/helper.rb @@ -87,6 +87,10 @@ def setup 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 d4cd87c75..35239364b 100644 --- a/test/irb/test_debug_cmd.rb +++ b/test/irb/test_debug_cmd.rb @@ -10,10 +10,6 @@ class DebugCommandTest < IntegrationTestCase 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 489ae2f3a..39f9e8275 100644 --- a/test/irb/test_history.rb +++ b/test/irb/test_history.rb @@ -210,14 +210,6 @@ def with_temp_stdio 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 ""