Use erb instead of ostruct for test_frozen_loaded_features

This commit is contained in:
Hiroshi SHIBATA 2025-01-08 14:11:05 +09:00
parent 574bfd2845
commit 4da545ddf3
Notes: git 2025-01-08 08:12:43 +00:00

View File

@ -532,7 +532,7 @@ class TestRequire < Test::Unit::TestCase
def test_frozen_loaded_features
bug3756 = '[ruby-core:31913]'
assert_in_out_err(['-e', '$LOADED_FEATURES.freeze; require "ostruct"'], "",
assert_in_out_err(['-e', '$LOADED_FEATURES.freeze; require "erb"'], "",
[], /\$LOADED_FEATURES is frozen; cannot append feature \(RuntimeError\)$/,
bug3756)
end