|
@@ -1063,8 +1063,9 @@ class ArchiverTestCase(ArchiverTestCaseBase):
|
|
|
|
|
|
mountpoint = os.path.join(self.tmpdir, 'mountpoint')
|
|
mountpoint = os.path.join(self.tmpdir, 'mountpoint')
|
|
with self.fuse_mount(self.repository_location + '::archive', mountpoint):
|
|
with self.fuse_mount(self.repository_location + '::archive', mountpoint):
|
|
- with pytest.raises(OSError):
|
|
|
|
|
|
+ with pytest.raises(OSError) as excinfo:
|
|
open(os.path.join(mountpoint, path))
|
|
open(os.path.join(mountpoint, path))
|
|
|
|
+ assert excinfo.value.errno == errno.EIO
|
|
with self.fuse_mount(self.repository_location + '::archive', mountpoint, 'allow_damaged_files'):
|
|
with self.fuse_mount(self.repository_location + '::archive', mountpoint, 'allow_damaged_files'):
|
|
open(os.path.join(mountpoint, path)).close()
|
|
open(os.path.join(mountpoint, path)).close()
|
|
|
|
|