[Bug: 1.9] undefined method `readpartial' for TestFileUtils::Stream

e$B!!$5$5$@$G$9!%e(B

e$B!!e(Btest-all e$B$G0J2<$N$h$&$J<:GT$K$J$j$^$9!%e(B

  1. Error:
    test_copy_stream(TestFileUtils):
    NoMethodError: undefined method readpartial' for #<TestFileUtils::Stream:0x0000000503ccf8> /home/ko1/ruby/trunk/lib/fileutils.rb:473:incopy_stream’
    /home/ko1/ruby/trunk/lib/fileutils.rb:473:in copy_stream' /home/ko1/ruby/trunk/test/fileutils/test_fileutils.rb:931:inblock (3 levels) in test_copy_stream’
    /home/ko1/ruby/trunk/test/fileutils/test_fileutils.rb:930:in open' /home/ko1/ruby/trunk/test/fileutils/test_fileutils.rb:930:inblock (2 levels) in test_copy_stream’
    /home/ko1/ruby/trunk/test/fileutils/test_fileutils.rb:929:in open' /home/ko1/ruby/trunk/test/fileutils/test_fileutils.rb:929:inblock in test_copy_stream’
    /home/ko1/ruby/trunk/test/fileutils/test_fileutils.rb:162:in
    block in each_srcdest' /home/ko1/ruby/trunk/test/fileutils/test_fileutils.rb:161:ineach’
    /home/ko1/ruby/trunk/test/fileutils/test_fileutils.rb:161:in
    each_srcdest' /home/ko1/ruby/trunk/test/fileutils/test_fileutils.rb:928:intest_copy_stream’

5080 tests, 1988879 assertions, 0 failures, 1 errors

ruby 1.9.0 (2008-09-03 revision 19081) [x86_64-linux]

e$B$G$Ne(B test-all e$B7k2L!%e(B

e$B$J$+$@$G$9!#e(B

At Wed, 3 Sep 2008 18:41:17 +0900,
SASADA Koichi wrote in [ruby-dev:36124]:

  1. Error:
    test_copy_stream(TestFileUtils):
    NoMethodError: undefined method readpartial' for #<TestFileUtils::Stream:0x0000000503ccf8> /home/ko1/ruby/trunk/lib/fileutils.rb:473:incopy_stream’

FileUtilse$B$G$Oe(Breadpartiale$B$O;H$C$F$J$$$H;W$&$s$G$9$,!#$=$l$K!"%F%-e(B
e$B%9%H%b!<%I$N07$$$KLdBj$,$"$C$?$N$G!"@hF|e(BIO.copy_streame$B$r;H$&$h$&e(B
e$B$K$7$?$O$:$G$9!#e(B

e$B!!$5$5$@$G$9!%e(B

Nobuyoshi N. wrote:

FileUtilse$B$G$Oe(Breadpartiale$B$O;H$C$F$J$$$H;W$&$s$G$9$,!#$=$l$K!"%F%-e(B
e$B%9%H%b!<%I$N07$$$KLdBj$,$"$C$?$N$G!"@hF|e(BIO.copy_streame$B$r;H$&$h$&e(B
e$B$K$7$?$O$:$G$9!#e(B

e$B!!5W!9$Ke(B Ruby e$B$N%=!<%9$rFI$s$G$_$^$7$?!%e(B

Index: test/fileutils/test_fileutils.rb

— test/fileutils/test_fileutils.rb (e$B%j%S%8%g%se(B 19146)
+++ test/fileutils/test_fileutils.rb (e$B:n6H%3%T!<e(B)
@@ -984,6 +984,10 @@ end
def write(str)
@f.write str
end
+

  • def readpartial(*args)
  •  @f.readpartial(*args)
    
  • end
    end

def test_uptodate?

e$B!!$3$s$J$N$r2C$($?$iDL$j$^$7$?!%$I$&$7$^$7$g$&!%e(B

e$B%A%1%C%He(B #538 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r19148.

http://redmine.ruby-lang.org/issues/show/538