diff options
author | Yusuke Endoh <[email protected]> | 2024-11-25 15:44:40 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2024-11-25 15:45:00 +0900 |
commit | f78f1e927fd18fffb24289065b3dec8ec6c2bd24 (patch) | |
tree | cecbdcc01e98463bb34824942b9005a8d1551d02 | |
parent | ff5fc4b5a13e0833d306d472a0a7633f6b838f86 (diff) |
Prevent a warning: setting Encoding.default_external
-rw-r--r-- | test/ruby/test_hash.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index 4115dbb3a2..87eb1912d9 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -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 |