Skip to content

Commit f441ce3

Browse files
committed
Use pend instead of skip
1 parent 4308329 commit f441ce3

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

test/irb/test_color.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def test_colorize_code
147147

148148
def test_colorize_code_complete_true
149149
unless complete_option_supported?
150-
skip '`complete: true` is the same as `complete: false` in Ruby 2.6-'
150+
pend '`complete: true` is the same as `complete: false` in Ruby 2.6-'
151151
end
152152

153153
# `complete: true` behaviors. Warn end-of-file.

test/irb/test_color_printer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def teardown
3030

3131
def test_color_printer
3232
unless ripper_lexer_scan_supported?
33-
skip 'Ripper::Lexer#scan is supported in Ruby 2.7+'
33+
pend 'Ripper::Lexer#scan is supported in Ruby 2.7+'
3434
end
3535
{
3636
1 => "#{BLUE}#{BOLD}1#{CLEAR}\n",

test/irb/test_completion.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_nonstring_module_name
1717
status = assert_in_out_err(cmds, "", //, [], bug5938)
1818
assert(status.success?, bug5938)
1919
rescue LoadError
20-
skip "cannot load irb/completion"
20+
pend "cannot load irb/completion"
2121
end
2222
end
2323

test/irb/test_context.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,22 +79,22 @@ def test_evaluate_with_exception
7979
end
8080

8181
def test_evaluate_with_encoding_error_without_lineno
82-
skip if RUBY_ENGINE == 'truffleruby'
82+
pend if RUBY_ENGINE == 'truffleruby'
8383
assert_raise_with_message(EncodingError, /invalid symbol/) {
8484
@context.evaluate(%q[{"\xAE": 1}], 1)
8585
# The backtrace of this invalid encoding hash doesn't contain lineno.
8686
}
8787
end
8888

8989
def test_evaluate_with_onigmo_warning
90-
skip if RUBY_ENGINE == 'truffleruby'
90+
pend if RUBY_ENGINE == 'truffleruby'
9191
assert_warning("(irb):1: warning: character class has duplicated range: /[aa]/\n") do
9292
@context.evaluate('/[aa]/', 1)
9393
end
9494
end
9595

9696
def test_eval_input
97-
skip if RUBY_ENGINE == 'truffleruby'
97+
pend if RUBY_ENGINE == 'truffleruby'
9898
verbose, $VERBOSE = $VERBOSE, nil
9999
input = TestInputMethod.new([
100100
"raise 'Foo'\n",
@@ -117,7 +117,7 @@ def test_eval_input
117117
end
118118

119119
def test_eval_input_raise2x
120-
skip if RUBY_ENGINE == 'truffleruby'
120+
pend if RUBY_ENGINE == 'truffleruby'
121121
input = TestInputMethod.new([
122122
"raise 'Foo'\n",
123123
"raise 'Bar'\n",
@@ -449,7 +449,7 @@ def main.inspect
449449
end
450450

451451
def test_eval_input_with_exception
452-
skip if RUBY_ENGINE == 'truffleruby'
452+
pend if RUBY_ENGINE == 'truffleruby'
453453
verbose, $VERBOSE = $VERBOSE, nil
454454
input = TestInputMethod.new([
455455
"def hoge() fuga; end; def fuga() raise; end; hoge\n",
@@ -479,7 +479,7 @@ def test_eval_input_with_exception
479479
end
480480

481481
def test_eval_input_with_invalid_byte_sequence_exception
482-
skip if RUBY_ENGINE == 'truffleruby'
482+
pend if RUBY_ENGINE == 'truffleruby'
483483
verbose, $VERBOSE = $VERBOSE, nil
484484
input = TestInputMethod.new([
485485
%Q{def hoge() fuga; end; def fuga() raise "A\\xF3B"; end; hoge\n},
@@ -509,7 +509,7 @@ def test_eval_input_with_invalid_byte_sequence_exception
509509
end
510510

511511
def test_eval_input_with_long_exception
512-
skip if RUBY_ENGINE == 'truffleruby'
512+
pend if RUBY_ENGINE == 'truffleruby'
513513
verbose, $VERBOSE = $VERBOSE, nil
514514
nesting = 20
515515
generated_code = ''

test/irb/test_raise_no_backtrace_exception.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
module TestIRB
55
class TestRaiseNoBacktraceException < Test::Unit::TestCase
66
def test_raise_exception
7-
skip if RUBY_ENGINE == 'truffleruby'
7+
pend if RUBY_ENGINE == 'truffleruby'
88
bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : []
99
assert_in_out_err(bundle_exec + %w[-rirb -W0 -e IRB.start(__FILE__) -- -f --], <<-IRB, /Exception: foo/, [])
1010
e = Exception.new("foo")
@@ -15,15 +15,15 @@ def e.backtrace; nil; end
1515
end
1616

1717
def test_raise_exception_with_invalid_byte_sequence
18-
skip if RUBY_ENGINE == 'truffleruby' || /mswin|mingw/ =~ RUBY_PLATFORM
18+
pend if RUBY_ENGINE == 'truffleruby' || /mswin|mingw/ =~ RUBY_PLATFORM
1919
bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : []
2020
assert_in_out_err(bundle_exec + %w[-rirb -W0 -e IRB.start(__FILE__) -- -f --], <<~IRB, /A\\xF3B \(StandardError\)/, [])
2121
raise StandardError, "A\\xf3B"
2222
IRB
2323
end
2424

2525
def test_raise_exception_with_different_encoding_containing_invalid_byte_sequence
26-
skip if RUBY_ENGINE == 'truffleruby'
26+
pend if RUBY_ENGINE == 'truffleruby'
2727
backup_home = ENV["HOME"]
2828
Dir.mktmpdir("test_irb_raise_no_backtrace_exception_#{$$}") do |tmpdir|
2929
ENV["HOME"] = tmpdir

test/irb/test_ruby_lex.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def test_a_closed_brace_and_not_closed_brace_in_a_line
138138

139139
def test_endless_range_at_end_of_line
140140
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.6.0')
141-
skip 'Endless range is available in 2.6.0 or later'
141+
pend 'Endless range is available in 2.6.0 or later'
142142
end
143143
input_with_prompt = [
144144
PromptRow.new('001:0: :> ', %q(a = 3..)),
@@ -479,7 +479,7 @@ def test_oneliner_def_in_multiple_lines
479479

480480
def test_broken_heredoc
481481
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.7.0')
482-
skip 'This test needs Ripper::Lexer#scan to take broken tokens'
482+
pend 'This test needs Ripper::Lexer#scan to take broken tokens'
483483
end
484484
input_with_correct_indents = [
485485
Row.new(%q(def foo), nil, 2, 1),
@@ -511,7 +511,7 @@ def dynamic_prompt(&block)
511511
end
512512

513513
def assert_dynamic_prompt(lines, expected_prompt_list)
514-
skip if RUBY_ENGINE == 'truffleruby'
514+
pend if RUBY_ENGINE == 'truffleruby'
515515
ruby_lex = RubyLex.new()
516516
io = MockIO_DynamicPrompt.new(lines) do |prompt_list|
517517
error_message = <<~EOM
@@ -555,7 +555,7 @@ def test_dyanmic_prompt_with_blank_line
555555

556556
def test_broken_percent_literal
557557
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.7.0')
558-
skip 'This test needs Ripper::Lexer#scan to take broken tokens'
558+
pend 'This test needs Ripper::Lexer#scan to take broken tokens'
559559
end
560560

561561
tokens = RubyLex.ripper_lex_without_warning('%wwww')
@@ -568,7 +568,7 @@ def test_broken_percent_literal
568568

569569
def test_broken_percent_literal_in_method
570570
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.7.0')
571-
skip 'This test needs Ripper::Lexer#scan to take broken tokens'
571+
pend 'This test needs Ripper::Lexer#scan to take broken tokens'
572572
end
573573

574574
tokens = RubyLex.ripper_lex_without_warning(<<~EOC.chomp)

test/irb/test_workspace.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def test_code_around_binding
3939
end
4040

4141
def test_code_around_binding_with_existing_unreadable_file
42-
skip 'chmod cannot make file unreadable on windows' if windows?
43-
skip 'skipped in root privilege' if Process.uid == 0
42+
pend 'chmod cannot make file unreadable on windows' if windows?
43+
pend 'skipped in root privilege' if Process.uid == 0
4444

4545
Tempfile.create('irb') do |f|
4646
code = "IRB::WorkSpace.new(binding)\n"

0 commit comments

Comments
 (0)