Suppress "possibly useless use of * in void context" warning

This commit is contained in:
Nobuyoshi Nakada 2021-07-28 11:43:54 +09:00
parent 6505c77501
commit 42ea359a0c
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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;'}")