test_syntax.rb: fix tempfile leaks

* test/ruby/test_syntax.rb (test_must_ascii_compatible),
  (test_script_lines): ensure to close temporary files.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test_io.rb: fix tempfile leaks

* test/ruby/test_io.rb (test_flush_in_finalizer2): cannot unlink
  opened file on Windows.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e