[ruby/json] Fix $VERBOSE restore

Manually sync this commit that was missed.

https://github.com/ruby/json/commit/6ae9155
This commit is contained in:
Peter Zhu 2024-11-11 15:13:24 -05:00
parent db0c7be642
commit 64827b15e8

View File

@ -209,7 +209,6 @@ class JSONCommonInterfaceTest < Test::Unit::TestCase
Encoding.default_external = encoding
yield
ensure
verbose = $VERBOSE
Encoding.default_external = previous_encoding
$VERBOSE = verbose
end