Prevent a warning: setting Encoding.default_external

This commit is contained in:
Yusuke Endoh 2024-11-25 15:44:40 +09:00
parent ff5fc4b5a1
commit f78f1e927f

View File

@ -893,8 +893,8 @@ class TestHash < Test::Unit::TestCase
sjis_hash = "{\x87]: 1}".force_encoding('sjis')
assert_equal(eval(sjis_hash).inspect, sjis_hash)
ensure
$VERBOSE = verbose_bak
Encoding.default_external = enc
$VERBOSE = verbose_bak
end
end