Permalink
Browse files

fix test unmount call on linux

  • Loading branch information...
1 parent ea3d504 commit 77fafe5cfb2890d0be207cf58f49d02cd9d86988 @mikejs committed Oct 3, 2009
Showing with 6 additions and 1 deletion.
  1. +6 −1 tests/basic.py
View
7 tests/basic.py
@@ -22,7 +22,12 @@ def setUp(self):
def tearDown(self):
for filename in glob.iglob(os.path.join(self.mount, '*')):
os.remove(filename)
- subprocess.check_call(['umount', self.mount])
+
+ if os.sys.platform == 'linux2':
+ subprocess.check_call(['fusermount', '-u', self.mount])
+ else:
+ subprocess.check_call(['umount', self.mount])
+
os.rmdir(self.mount)
def test_read_write(self):

0 comments on commit 77fafe5

Please sign in to comment.