From dcad4bda588c999d396dc3405bb1bfd241ae5c8b Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 9 Oct 2013 21:04:12 +0000 Subject: * test/ruby/test_rand.rb: fix r43224. local variable `e' is no longer available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/ruby/test_rand.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 24d8f517ea..568f6c2bf1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Oct 10 06:02:08 2013 Koichi Sasada + + * test/ruby/test_rand.rb: fix r43224. local variable `e' is + no longer available. + Thu Oct 10 00:02:35 2013 Yusuke Endoh * numeric.c (fix_aref): avoid a possible undefined behavior. diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb index 974e21e3c0..d6512383be 100644 --- a/test/ruby/test_rand.rb +++ b/test/ruby/test_rand.rb @@ -514,7 +514,7 @@ END bug7903 = '[ruby-dev:47061] [Bug #7903]' def (gen = Object.new).rand(*) -1 end - assert_raise_with_message(RangeError, /small -1\z/, e.message, bug7903) {[1,2,3].sample(random: gen)} + assert_raise_with_message(RangeError, /small -1\z/, bug7903) {[1,2,3].sample(random: gen)} bug7935 = '[ruby-core:52779] [Bug #7935]' class << (gen = Object.new) -- cgit v1.2.3