ruby-changes:34061
From: nobu <ko1@a...>
Date: Mon, 26 May 2014 22:33:08 +0900 (JST)
Subject: [ruby-changes:34061] nobu:r46142 (trunk): test/rdoc: remove tempfiles
nobu 2014-05-26 22:33:01 +0900 (Mon, 26 May 2014) New Revision: 46142 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46142 Log: test/rdoc: remove tempfiles * test/rdoc/test_rdoc_encoding.rb (teardown): remove tempfiles. * test/rdoc/test_rdoc_markup_pre_process.rb (teardown): ditto. * test/rdoc/test_rdoc_parser_c.rb (teardown): ditto. * test/rdoc/test_rdoc_parser_changelog.rb (teardown): ditto. * test/rdoc/test_rdoc_parser_markdown.rb (teardown): ditto. * test/rdoc/test_rdoc_parser_rd.rb (teardown): ditto. * test/rdoc/test_rdoc_parser_ruby.rb (teardown): ditto. * test/rdoc/test_rdoc_parser_simple.rb (teardown): ditto. Modified files: trunk/test/rdoc/test_rdoc_encoding.rb trunk/test/rdoc/test_rdoc_markup_pre_process.rb trunk/test/rdoc/test_rdoc_parser_c.rb trunk/test/rdoc/test_rdoc_parser_changelog.rb trunk/test/rdoc/test_rdoc_parser_markdown.rb trunk/test/rdoc/test_rdoc_parser_rd.rb trunk/test/rdoc/test_rdoc_parser_ruby.rb trunk/test/rdoc/test_rdoc_parser_simple.rb Index: test/rdoc/test_rdoc_parser_rd.rb =================================================================== --- test/rdoc/test_rdoc_parser_rd.rb (revision 46141) +++ test/rdoc/test_rdoc_parser_rd.rb (revision 46142) @@ -19,7 +19,7 @@ class TestRDocParserRd < RDoc::TestCase https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_parser_rd.rb#L19 def teardown super - @tempfile.close + @tempfile.close! end def test_file Index: test/rdoc/test_rdoc_markup_pre_process.rb =================================================================== --- test/rdoc/test_rdoc_markup_pre_process.rb (revision 46141) +++ test/rdoc/test_rdoc_markup_pre_process.rb (revision 46142) @@ -17,7 +17,7 @@ class TestRDocMarkupPreProcess < RDoc::T https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_markup_pre_process.rb#L17 def teardown super - @tempfile.close + @tempfile.close! end def test_class_register Index: test/rdoc/test_rdoc_parser_markdown.rb =================================================================== --- test/rdoc/test_rdoc_parser_markdown.rb (revision 46141) +++ test/rdoc/test_rdoc_parser_markdown.rb (revision 46142) @@ -19,7 +19,7 @@ class TestRDocParserMarkdown < RDoc::Tes https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_parser_markdown.rb#L19 def teardown super - @tempfile.close + @tempfile.close! end def test_file Index: test/rdoc/test_rdoc_parser_simple.rb =================================================================== --- test/rdoc/test_rdoc_parser_simple.rb (revision 46141) +++ test/rdoc/test_rdoc_parser_simple.rb (revision 46142) @@ -17,7 +17,7 @@ class TestRDocParserSimple < RDoc::TestC https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_parser_simple.rb#L17 def teardown super - @tempfile.close + @tempfile.close! end def test_initialize_metadata Index: test/rdoc/test_rdoc_parser_changelog.rb =================================================================== --- test/rdoc/test_rdoc_parser_changelog.rb (revision 46141) +++ test/rdoc/test_rdoc_parser_changelog.rb (revision 46142) @@ -12,7 +12,7 @@ class TestRDocParserChangeLog < RDoc::Te https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_parser_changelog.rb#L12 end def teardown - @tempfile.close + @tempfile.close! end def test_class_can_parse Index: test/rdoc/test_rdoc_encoding.rb =================================================================== --- test/rdoc/test_rdoc_encoding.rb (revision 46141) +++ test/rdoc/test_rdoc_encoding.rb (revision 46142) @@ -10,6 +10,12 @@ class TestRDocEncoding < RDoc::TestCase https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_encoding.rb#L10 @tempfile = Tempfile.new 'test_rdoc_encoding' end + def teardown + @tempfile.close! + + super + end + def test_class_read_file @tempfile.write "hi everybody" @tempfile.flush Index: test/rdoc/test_rdoc_parser_ruby.rb =================================================================== --- test/rdoc/test_rdoc_parser_ruby.rb (revision 46141) +++ test/rdoc/test_rdoc_parser_ruby.rb (revision 46142) @@ -29,8 +29,8 @@ class TestRDocParserRuby < RDoc::TestCas https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_parser_ruby.rb#L29 def teardown super - @tempfile.close - @tempfile2.close + @tempfile.close! + @tempfile2.close! end def test_collect_first_comment Index: test/rdoc/test_rdoc_parser_c.rb =================================================================== --- test/rdoc/test_rdoc_parser_c.rb (revision 46141) +++ test/rdoc/test_rdoc_parser_c.rb (revision 46142) @@ -58,7 +58,7 @@ class TestRDocParserC < RDoc::TestCase https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_parser_c.rb#L58 def teardown super - @tempfile.close + @tempfile.close! end def test_class_can_parse -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/