minor fix to unittest fake error
Change-Id: Ife7add5646afb94ec56a38f335112ab70998b1b1
This commit is contained in:
parent
8255810e7d
commit
092eb56e79
@ -18,6 +18,7 @@
|
||||
import os
|
||||
import copy
|
||||
import logging
|
||||
import errno
|
||||
from sys import exc_info
|
||||
from contextlib import contextmanager
|
||||
from collections import defaultdict
|
||||
@ -170,7 +171,7 @@ def _getxattr(fd, k):
|
||||
inode = _get_inode(fd)
|
||||
data = xattr_data.get(inode, {}).get(k)
|
||||
if not data:
|
||||
raise IOError
|
||||
raise IOError(errno.ENODATA, "Fake IOError")
|
||||
return data
|
||||
|
||||
import xattr
|
||||
|
Loading…
x
Reference in New Issue
Block a user