summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <[email protected]>2024-11-25 15:44:40 +0900
committerYusuke Endoh <[email protected]>2024-11-25 15:45:00 +0900
commitf78f1e927fd18fffb24289065b3dec8ec6c2bd24 (patch)
treececbdcc01e98463bb34824942b9005a8d1551d02
parentff5fc4b5a13e0833d306d472a0a7633f6b838f86 (diff)
Prevent a warning: setting Encoding.default_external
-rw-r--r--test/ruby/test_hash.rb2
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