зеркало из https://github.com/github/ruby.git
* test/etc/test_etc.rb: assert only when any value is given.
[Bug #1575] [ruby-core:23722] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a20cc16b20
Коммит
a6e33fd71c
|
@ -24,7 +24,7 @@ class TestEtc < Test::Unit::TestCase
|
|||
assert_kind_of(Integer, s.expire) if s.respond_to?(:expire)
|
||||
end
|
||||
|
||||
assert_raise(RuntimeError) { Etc.passwd { Etc.passwd { } } }
|
||||
Etc.passwd { assert_raise(RuntimeError) { Etc.passwd { } }; break }
|
||||
end
|
||||
|
||||
def test_getpwuid
|
||||
|
@ -63,7 +63,7 @@ class TestEtc < Test::Unit::TestCase
|
|||
assert_kind_of(Integer, s.gid)
|
||||
end
|
||||
|
||||
assert_raise(RuntimeError) { Etc.group { Etc.group { } } }
|
||||
Etc.group { assert_raise(RuntimeError) { Etc.group { } }; break }
|
||||
end
|
||||
|
||||
def test_getgrgid
|
||||
|
|
Загрузка…
Ссылка в новой задаче