mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 11:03:58 +02:00
merge revision(s) 34129:
* test/ruby/test_io.rb (TestIO#test_autoclose): Tempfile.new doesn't accept the block argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c511d463d8
commit
3b22a82547
3 changed files with 28 additions and 26 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Jan 12 01:40:33 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_io.rb (TestIO#test_autoclose): Tempfile.new doesn't
|
||||
accept the block argument.
|
||||
|
||||
Sat Jan 7 22:46:36 2012 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* lib/rexml/parsers/baseparser.rb: use private instead of _xxx
|
||||
|
|
|
@ -1395,7 +1395,7 @@ class TestIO < Test::Unit::TestCase
|
|||
feature2250 = '[ruby-core:26222]'
|
||||
pre = 'ft2250'
|
||||
|
||||
Tempfile.new(pre) do |t|
|
||||
t = Tempfile.new(pre)
|
||||
f = IO.for_fd(t.fileno)
|
||||
assert_equal(true, f.autoclose?)
|
||||
f.autoclose = false
|
||||
|
@ -1410,18 +1410,15 @@ class TestIO < Test::Unit::TestCase
|
|||
assert_equal(true, f.autoclose?)
|
||||
f.close
|
||||
assert_raise(Errno::EBADF) {t.close}
|
||||
end
|
||||
|
||||
Tempfile.new(pre) do |t|
|
||||
t = Tempfile.new(pre)
|
||||
try_fdopen(t.fileno)
|
||||
assert_raise(Errno::EBADF) {t.close}
|
||||
end
|
||||
|
||||
Tempfile.new(pre) do |t|
|
||||
try_fdopen(f.fileno, false)
|
||||
t = Tempfile.new(pre)
|
||||
try_fdopen(t.fileno, false)
|
||||
assert_nothing_raised(Errno::EBADF) {t.close}
|
||||
end
|
||||
end
|
||||
|
||||
def test_open_redirect
|
||||
o = Object.new
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#define RUBY_VERSION "1.9.3"
|
||||
#define RUBY_PATCHLEVEL 21
|
||||
#define RUBY_PATCHLEVEL 22
|
||||
|
||||
#define RUBY_RELEASE_DATE "2012-01-10"
|
||||
#define RUBY_RELEASE_DATE "2012-01-12"
|
||||
#define RUBY_RELEASE_YEAR 2012
|
||||
#define RUBY_RELEASE_MONTH 1
|
||||
#define RUBY_RELEASE_DAY 10
|
||||
#define RUBY_RELEASE_DAY 12
|
||||
|
||||
#include "ruby/version.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue