summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-08 15:34:14 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-08 15:34:14 +0000
commit387aa65735c98e0432f25642a46ed74b10ce3d87 (patch)
treeeaa528aaf51cdd04b03b37e14c8a8a23fc6e43f0
parent8d74e302ba7b5520de0e7e35fb69c82fe8952fd3 (diff)
merges r24404 from trunk into ruby_1_9_1.
-- * bootstraptest/test_exception.rb: test for [ruby-core:24767]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--bootstraptest/test_exception.rb14
-rw-r--r--version.h2
2 files changed, 14 insertions, 2 deletions
diff --git a/bootstraptest/test_exception.rb b/bootstraptest/test_exception.rb
index bd3d02ade..33154a546 100644
--- a/bootstraptest/test_exception.rb
+++ b/bootstraptest/test_exception.rb
@@ -370,7 +370,7 @@ assert_equal %q{}, %q{
}
##
-assert_match /undefined method `foo\'/, %q{
+assert_match /undefined method `foo\'/, %q{#`
STDERR.reopen(STDOUT)
class C
def inspect
@@ -402,3 +402,15 @@ assert_equal 'nil', %q{
exc.inspect
}, '[ruby-dev:32608]'
+assert_equal 'exception class/object expected', %q{
+ class ZeroDivisionError
+ def self.new(message)
+ 42
+ end
+ end
+ begin
+ 1/0
+ rescue Exception => e
+ e.message
+ end
+}, '[ruby-core:24767]'
diff --git a/version.h b/version.h
index 1fdfd6999..e2395aedf 100644
--- a/version.h
+++ b/version.h
@@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.1"
-#define RUBY_PATCHLEVEL 272
+#define RUBY_PATCHLEVEL 273
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 1