test/test_tryopen.rb in kgio-2.7.3 vs test/test_tryopen.rb in kgio-2.7.4

- old
+ new

@@ -13,25 +13,25 @@ assert_kind_of File, tmp assert_equal File.read(__FILE__), tmp.read assert_equal __FILE__, tmp.path assert_equal __FILE__, tmp.to_path - assert_nothing_raised { tmp.close } + tmp.close end def test_tryopen_ENOENT tmp = Tempfile.new "tryopen" path = tmp.path tmp.close! tmp = Kgio::File.tryopen(path) assert_equal :ENOENT, tmp end - def test_tryopen_EPERM + def test_tryopen_EACCES tmp = Tempfile.new "tryopen" File.chmod 0000, tmp.path tmp = Kgio::File.tryopen(tmp.path) - assert_equal :EACCES, tmp + assert_equal(:EACCES, tmp) end def test_tryopen_readwrite tmp = Tempfile.new "tryopen" file = Kgio::File.tryopen(tmp.path, IO::RDWR)