From cefd28a84fb25b80d8afeea15df03ac90ac1d615 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 21 Aug 2008 10:20:55 +0000 Subject: * file.c (rb_stat_inspect): don't raise if self is not initialized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_file.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby') diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index 26b29785ab..f6fcf89a14 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -117,5 +117,6 @@ class TestFile < Test::Unit::TestCase def test_uninitialized assert_raise(TypeError) { File::Stat.allocate.readable? } + assert_nothing_raised { File::Stat.allocate.inspect } end end -- cgit v1.2.3