summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_exception.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index 0e1d280a9b..87d7d6f660 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -561,7 +561,7 @@ end.join
end
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
assert_raise(NoMemoryError) do
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")