From 9194b220a59435a5a16d62a3ccc93b5adc784cd1 Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 5 Mar 2014 13:27:22 +0000 Subject: * test/ruby: get rid of warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_time_tz.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby/test_time_tz.rb') diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb index bb69af87b4..1e8f303274 100644 --- a/test/ruby/test_time_tz.rb +++ b/test/ruby/test_time_tz.rb @@ -150,7 +150,7 @@ class TestTimeTZ < Test::Unit::TestCase end def test_europe_lisbon - with_tz(tz="Europe/Lisbon") { + with_tz("Europe/Lisbon") { assert_equal("LMT", Time.new(-0x1_0000_0000_0000_0000).zone) } end if has_right_tz @@ -250,7 +250,7 @@ class TestTimeTZ < Test::Unit::TestCase } } group_by(sample) {|tz, _, _, _| tz }.each {|tz, a| - a.each_with_index {|(_, u, l, gmtoff), i| + a.each_with_index {|(_, _, l, gmtoff), i| expected = "%04d-%02d-%02d %02d:%02d:%02d %s" % (l+[format_gmtoff(gmtoff)]) monotonic_to_past = i == 0 || (a[i-1][2] <=> l) < 0 monotonic_to_future = i == a.length-1 || (l <=> a[i+1][2]) < 0 -- cgit v1.2.3