1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Handle Timeout::Error instead of NoMemoryError in test

Solaris 11 CI times out instead of raising NoMemoryError for large
allocations, so it cannot test ensure after NoMemoryError.
This commit is contained in:
Jeremy Evans 2021-07-28 08:45:26 -07:00
parent d04ba0906c
commit 3b9fe3e15a

View file

@ -583,6 +583,9 @@ end.join
rescue RangeError
# MingW can raise RangeError instead of NoMemoryError,
# so we cannot test this case.
rescue Timeout::Error
# Solaris 11 CI times out instead of raising NoMemoryError,
# so we cannot test this case.
end
def test_equal