about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--test/test_tryopen.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_tryopen.rb b/test/test_tryopen.rb
index 80b5de3..8a8278c 100644
--- a/test/test_tryopen.rb
+++ b/test/test_tryopen.rb
@@ -26,11 +26,11 @@ class TestTryopen < Test::Unit::TestCase
     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