summaryrefslogtreecommitdiff
path: root/test/json
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-07-03 11:45:58 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-07-03 11:47:09 +0900
commit1e039474a2d55bdc7cfc5a01b4d8cf00ae446a76 (patch)
treeff5bf853156d337fec2ee002a2dc9e4e376f8ce0 /test/json
parent05a12297c3acaa3ab01f4cc61535d982878b78de (diff)
test/json/json_fixtures_test.rb: Prevent an "out of range" warning
``` /home/mame/work/ruby/.ext/common/json/common.rb:263: warning: Float 23456789012E666 out of range ```
Diffstat (limited to 'test/json')
-rw-r--r--test/json/json_fixtures_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/json/json_fixtures_test.rb b/test/json/json_fixtures_test.rb
index b2a1ec8b8c..845abb4867 100644
--- a/test/json/json_fixtures_test.rb
+++ b/test/json/json_fixtures_test.rb
@@ -10,6 +10,7 @@ class JSONFixturesTest < Test::Unit::TestCase
end
def test_passing
+ verbose_bak, $VERBOSE = $VERBOSE, nil
for name, source in @passed
begin
assert JSON.parse(source),
@@ -19,6 +20,8 @@ class JSONFixturesTest < Test::Unit::TestCase
raise e
end
end
+ ensure
+ $VERBOSE = verbose_bak
end
def test_failing