1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/dbm/test_dbm.rb (TestDBM::test_s_open_error): remove

test_s_open_error test to detect duplicate open.
  [ruby-dev:27202]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2005-09-20 08:14:57 +00:00
parent d07e0ae442
commit d13023d257
2 changed files with 6 additions and 8 deletions

View file

@ -86,14 +86,6 @@ if defined? DBM
assert_equal(DBM.open("tmptest_dbm") { :foo }, :foo)
end
def test_s_open_error
assert_instance_of(DBM, dbm = DBM.open("tmptest_dbm", 0))
assert_raise(Errno::EACCES, "NEVER MIND IF YOU USE Berkeley DB3") {
DBM.open("tmptest_dbm", 0)
}
dbm.close
end
def test_close
assert_instance_of(DBM, dbm = DBM.open("tmptest_dbm"))
assert_nil(dbm.close)