mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ruby/test_require.rb (loading_fifo): checking by defined? is meaningless about
notimplemented method. such methods are defined, but not respond_to?. this fixes test failures introduced at r52172. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
89db37cf77
commit
0bb6bf24b5
1 changed files with 2 additions and 2 deletions
|
@ -708,7 +708,7 @@ class TestRequire < Test::Unit::TestCase
|
|||
end
|
||||
END
|
||||
}
|
||||
end if defined?(File.mkfifo)
|
||||
end if File.respond_to?(:mkfifo)
|
||||
|
||||
def test_loading_fifo_threading_success
|
||||
Tempfile.create(%w'fifo .rb') {|f|
|
||||
|
@ -731,7 +731,7 @@ class TestRequire < Test::Unit::TestCase
|
|||
load(path)
|
||||
INPUT
|
||||
}
|
||||
end if defined?(File.mkfifo)
|
||||
end if File.respond_to?(:mkfifo)
|
||||
|
||||
def test_throw_while_loading
|
||||
Tempfile.create(%w'bug-11404 .rb') do |f|
|
||||
|
|
Loading…
Reference in a new issue