summaryrefslogtreecommitdiff
path: root/test/irb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-31 14:56:50 +0900
committergit <svn-admin@ruby-lang.org>2021-08-30 12:39:23 +0900
commit598f4f42196a51d922f539fa885173c39312b427 (patch)
tree396b3c30e18c7ef2d015fb6eb4895a82b87fe33e /test/irb
parentbe9cc6c75865b24652d001f0f34f2e63180418c6 (diff)
[ruby/irb] Use pend instead of skip
https://github.com/ruby/irb/commit/f441ce35bf
Diffstat (limited to 'test/irb')
-rw-r--r--test/irb/test_color.rb2
-rw-r--r--test/irb/test_color_printer.rb2
-rw-r--r--test/irb/test_completion.rb2
-rw-r--r--test/irb/test_context.rb14
-rw-r--r--test/irb/test_raise_no_backtrace_exception.rb6
-rw-r--r--test/irb/test_ruby_lex.rb10
-rw-r--r--test/irb/test_workspace.rb4
7 files changed, 20 insertions, 20 deletions
diff --git a/test/irb/test_color.rb b/test/irb/test_color.rb
index ba99b1253f..6ad64a0ae2 100644
--- a/test/irb/test_color.rb
+++ b/test/irb/test_color.rb
@@ -147,7 +147,7 @@ module TestIRB
def test_colorize_code_complete_true
unless complete_option_supported?
- skip '`complete: true` is the same as `complete: false` in Ruby 2.6-'
+ pend '`complete: true` is the same as `complete: false` in Ruby 2.6-'
end
# `complete: true` behaviors. Warn end-of-file.
diff --git a/test/irb/test_color_printer.rb b/test/irb/test_color_printer.rb
index 1afc7ccf55..93ec700146 100644
--- a/test/irb/test_color_printer.rb
+++ b/test/irb/test_color_printer.rb
@@ -30,7 +30,7 @@ module TestIRB
def test_color_printer
unless ripper_lexer_scan_supported?
- skip 'Ripper::Lexer#scan is supported in Ruby 2.7+'
+ pend 'Ripper::Lexer#scan is supported in Ruby 2.7+'
end
{
1 => "#{BLUE}#{BOLD}1#{CLEAR}\n",
diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb
index 535690ae22..ab57762029 100644
--- a/test/irb/test_completion.rb
+++ b/test/irb/test_completion.rb
@@ -17,7 +17,7 @@ module TestIRB
status = assert_in_out_err(cmds, "", //, [], bug5938)
assert(status.success?, bug5938)
rescue LoadError
- skip "cannot load irb/completion"
+ pend "cannot load irb/completion"
end
end
diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb
index 56878af63f..8bc259dbba 100644
--- a/test/irb/test_context.rb
+++ b/test/irb/test_context.rb
@@ -79,7 +79,7 @@ module TestIRB
end
def test_evaluate_with_encoding_error_without_lineno
- skip if RUBY_ENGINE == 'truffleruby'
+ pend if RUBY_ENGINE == 'truffleruby'
assert_raise_with_message(EncodingError, /invalid symbol/) {
@context.evaluate(%q[{"\xAE": 1}], 1)
# The backtrace of this invalid encoding hash doesn't contain lineno.
@@ -87,14 +87,14 @@ module TestIRB
end
def test_evaluate_with_onigmo_warning
- skip if RUBY_ENGINE == 'truffleruby'
+ pend if RUBY_ENGINE == 'truffleruby'
assert_warning("(irb):1: warning: character class has duplicated range: /[aa]/\n") do
@context.evaluate('/[aa]/', 1)
end
end
def test_eval_input
- skip if RUBY_ENGINE == 'truffleruby'
+ pend if RUBY_ENGINE == 'truffleruby'
verbose, $VERBOSE = $VERBOSE, nil
input = TestInputMethod.new([
"raise 'Foo'\n",
@@ -117,7 +117,7 @@ module TestIRB
end
def test_eval_input_raise2x
- skip if RUBY_ENGINE == 'truffleruby'
+ pend if RUBY_ENGINE == 'truffleruby'
input = TestInputMethod.new([
"raise 'Foo'\n",
"raise 'Bar'\n",
@@ -449,7 +449,7 @@ module TestIRB
end
def test_eval_input_with_exception
- skip if RUBY_ENGINE == 'truffleruby'
+ pend if RUBY_ENGINE == 'truffleruby'
verbose, $VERBOSE = $VERBOSE, nil
input = TestInputMethod.new([
"def hoge() fuga; end; def fuga() raise; end; hoge\n",
@@ -479,7 +479,7 @@ module TestIRB
end
def test_eval_input_with_invalid_byte_sequence_exception
- skip if RUBY_ENGINE == 'truffleruby'
+ pend if RUBY_ENGINE == 'truffleruby'
verbose, $VERBOSE = $VERBOSE, nil
input = TestInputMethod.new([
%Q{def hoge() fuga; end; def fuga() raise "A\\xF3B"; end; hoge\n},
@@ -509,7 +509,7 @@ module TestIRB
end
def test_eval_input_with_long_exception
- skip if RUBY_ENGINE == 'truffleruby'
+ pend if RUBY_ENGINE == 'truffleruby'
verbose, $VERBOSE = $VERBOSE, nil
nesting = 20
generated_code = ''
diff --git a/test/irb/test_raise_no_backtrace_exception.rb b/test/irb/test_raise_no_backtrace_exception.rb
index 3031f000ed..530adc0cbf 100644
--- a/test/irb/test_raise_no_backtrace_exception.rb
+++ b/test/irb/test_raise_no_backtrace_exception.rb
@@ -4,7 +4,7 @@ require 'test/unit'
module TestIRB
class TestRaiseNoBacktraceException < Test::Unit::TestCase
def test_raise_exception
- skip if RUBY_ENGINE == 'truffleruby'
+ pend if RUBY_ENGINE == 'truffleruby'
bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : []
assert_in_out_err(bundle_exec + %w[-rirb -W0 -e IRB.start(__FILE__) -- -f --], <<-IRB, /Exception: foo/, [])
e = Exception.new("foo")
@@ -15,7 +15,7 @@ IRB
end
def test_raise_exception_with_invalid_byte_sequence
- skip if RUBY_ENGINE == 'truffleruby' || /mswin|mingw/ =~ RUBY_PLATFORM
+ pend if RUBY_ENGINE == 'truffleruby' || /mswin|mingw/ =~ RUBY_PLATFORM
bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : []
assert_in_out_err(bundle_exec + %w[-rirb -W0 -e IRB.start(__FILE__) -- -f --], <<~IRB, /A\\xF3B \(StandardError\)/, [])
raise StandardError, "A\\xf3B"
@@ -23,7 +23,7 @@ IRB
end
def test_raise_exception_with_different_encoding_containing_invalid_byte_sequence
- skip if RUBY_ENGINE == 'truffleruby'
+ pend if RUBY_ENGINE == 'truffleruby'
backup_home = ENV["HOME"]
Dir.mktmpdir("test_irb_raise_no_backtrace_exception_#{$$}") do |tmpdir|
ENV["HOME"] = tmpdir
diff --git a/test/irb/test_ruby_lex.rb b/test/irb/test_ruby_lex.rb
index 556afbd776..d31d38dc99 100644
--- a/test/irb/test_ruby_lex.rb
+++ b/test/irb/test_ruby_lex.rb
@@ -138,7 +138,7 @@ module TestIRB
def test_endless_range_at_end_of_line
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.6.0')
- skip 'Endless range is available in 2.6.0 or later'
+ pend 'Endless range is available in 2.6.0 or later'
end
input_with_prompt = [
PromptRow.new('001:0: :> ', %q(a = 3..)),
@@ -479,7 +479,7 @@ module TestIRB
def test_broken_heredoc
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.7.0')
- skip 'This test needs Ripper::Lexer#scan to take broken tokens'
+ pend 'This test needs Ripper::Lexer#scan to take broken tokens'
end
input_with_correct_indents = [
Row.new(%q(def foo), nil, 2, 1),
@@ -511,7 +511,7 @@ module TestIRB
end
def assert_dynamic_prompt(lines, expected_prompt_list)
- skip if RUBY_ENGINE == 'truffleruby'
+ pend if RUBY_ENGINE == 'truffleruby'
ruby_lex = RubyLex.new()
io = MockIO_DynamicPrompt.new(lines) do |prompt_list|
error_message = <<~EOM
@@ -555,7 +555,7 @@ module TestIRB
def test_broken_percent_literal
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.7.0')
- skip 'This test needs Ripper::Lexer#scan to take broken tokens'
+ pend 'This test needs Ripper::Lexer#scan to take broken tokens'
end
tokens = RubyLex.ripper_lex_without_warning('%wwww')
@@ -568,7 +568,7 @@ module TestIRB
def test_broken_percent_literal_in_method
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.7.0')
- skip 'This test needs Ripper::Lexer#scan to take broken tokens'
+ pend 'This test needs Ripper::Lexer#scan to take broken tokens'
end
tokens = RubyLex.ripper_lex_without_warning(<<~EOC.chomp)
diff --git a/test/irb/test_workspace.rb b/test/irb/test_workspace.rb
index f028fc3aa2..a39bea2050 100644
--- a/test/irb/test_workspace.rb
+++ b/test/irb/test_workspace.rb
@@ -39,8 +39,8 @@ module TestIRB
end
def test_code_around_binding_with_existing_unreadable_file
- skip 'chmod cannot make file unreadable on windows' if windows?
- skip 'skipped in root privilege' if Process.uid == 0
+ pend 'chmod cannot make file unreadable on windows' if windows?
+ pend 'skipped in root privilege' if Process.uid == 0
Tempfile.create('irb') do |f|
code = "IRB::WorkSpace.new(binding)\n"