mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 10:33:58 +02:00
Suppress "possibly useless use of * in void context" warning
This commit is contained in:
parent
6505c77501
commit
42ea359a0c
1 changed files with 1 additions and 1 deletions
|
@ -561,7 +561,7 @@ end.join
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_ensure_after_nomemoryerror
|
def test_ensure_after_nomemoryerror
|
||||||
assert_separately([], "'a' * 1_000_000_000_000_000_000")
|
assert_separately([], "$_ = 'a' * 1_000_000_000_000_000_000")
|
||||||
rescue NoMemoryError
|
rescue NoMemoryError
|
||||||
assert_raise(NoMemoryError) do
|
assert_raise(NoMemoryError) do
|
||||||
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
|
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue