From f97d8eec10ff0843522dc37467e209b6f27c7c6b Mon Sep 17 00:00:00 2001 From: xibbar Date: Thu, 12 Nov 2009 14:53:35 +0000 Subject: [PATCH] * test/cgi/test_cgi_multipart.rb (_read): performance improvement in windows.[ruby-dev:39650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/cgi/test_cgi_multipart.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/cgi/test_cgi_multipart.rb b/test/cgi/test_cgi_multipart.rb index 86bbc0d28c..012f515647 100644 --- a/test/cgi/test_cgi_multipart.rb +++ b/test/cgi/test_cgi_multipart.rb @@ -179,11 +179,7 @@ class CGIMultipartTest < Test::Unit::TestCase def _read(basename) filename = File.join(File.dirname(__FILE__), 'testdata', basename) - if RUBY_VERSION>="1.9" - s = File.open(filename, 'r:ascii-8bit') {|f| f.read() } - else - s = File.open(filename, 'rb') {|f| f.read() } - end + s = File.open(filename, 'rb') {|f| f.read() } return s end