Skip to content

Commit 35660ec

Browse files
committed
Suppress warnings for variables
1 parent f5312d8 commit 35660ec

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

test/ruby/test_proc.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ def test_local_variable_set
16551655

16561656
def test_numparam_is_not_local_variables
16571657
"foo".tap do
1658-
_9
1658+
_9 and flunk
16591659
assert_equal([], binding.local_variables)
16601660
assert_raise(NameError) { binding.local_variable_get(:_9) }
16611661
assert_raise(NameError) { binding.local_variable_set(:_9, 1) }
@@ -1674,7 +1674,7 @@ def test_numparam_is_not_local_variables
16741674
assert_raise(NameError) { binding.local_variable_get(:_9) }
16751675
assert_raise(NameError) { binding.local_variable_set(:_9, 1) }
16761676
"bar".tap do
1677-
_9
1677+
_9 and flunk
16781678
assert_equal([], binding.local_variables)
16791679
assert_raise(NameError) { binding.local_variable_get(:_9) }
16801680
assert_raise(NameError) { binding.local_variable_set(:_9, 1) }

test/ruby/test_rubyoptions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ def test_segv_loaded_features
875875
'-e', '$".clear',
876876
'-e', '$".unshift Bogus.new',
877877
'-e', '(p $"; abort) unless $".size == 1',
878-
], success: false)
878+
], bug7402, success: false)
879879
end
880880

881881
def test_segv_setproctitle

test/ruby/test_variable.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ def test_exivar_resize_with_compaction_stress
419419
x
420420
end
421421
end
422+
objs or flunk
422423
end
423424

424425
def test_local_variables_with_kwarg
@@ -440,7 +441,7 @@ def test_many_instance_variables
440441
end
441442

442443
def test_local_variables_encoding
443-
α = 1
444+
α = 1 or flunk
444445
b = binding
445446
b.eval("".encode("us-ascii"))
446447
assert_equal(%i[α b], b.local_variables)

0 commit comments

Comments
 (0)