Skip to content
Permalink
Browse files

fix tests

  • Loading branch information
alex committed May 27, 2013
1 parent 869e48f commit 5688e5c12dd2364021f5a632eb8966de72d7a882
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/objects/test_dirobject.py
@@ -20,7 +20,7 @@ def test_new(self, space, tmpdir):
space.execute("Dir.new('%s')" % d)
with self.raises(space, "Errno::ENOENT"):
space.execute("Dir.new('this does not exist')")
with self.raises(space, "SystemCallError"):
with self.raises(space, "Errno::ENOTDIR"):
space.execute("Dir.new('%s')" % f)

def test_delete(self, space, tmpdir):
@@ -30,7 +30,7 @@ def test_delete(self, space, tmpdir):
d = tmpdir.mkdir("sub")
f = d.join("content")
f.write("hello")
with self.raises(space, "SystemCallError"):
with self.raises(space, "Errno::ENOTEMPTY"):
space.execute("Dir.delete('%s')" % d)

def test_mkdir(self, space, tmpdir):

0 comments on commit 5688e5c

Please sign in to comment.
You can’t perform that action at this time.