summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-07-03 11:48:46 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-07-03 11:48:46 +0900
commit438d85e0407902cf76c497662be5381ea7f9d4c5 (patch)
tree75582edf8e2fd193bfcc8dc8796027d47e12fc98
parent380699de48bf697e9c9610858d4c897ebb4bd79f (diff)
downloadjson-438d85e0407902cf76c497662be5381ea7f9d4c5.tar.gz
test/json/json_fixtures_test.rb: Prevent an "out of range" warning
with `make test-all RUBYOPT=-w` ``` /home/mame/work/ruby/.ext/common/json/common.rb:263: warning: Float 23456789012E666 out of range ```
-rw-r--r--tests/json_fixtures_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/json_fixtures_test.rb b/tests/json_fixtures_test.rb
index b2a1ec8..845abb4 100644
--- a/tests/json_fixtures_test.rb
+++ b/tests/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