minor fix to unittest fake error

Change-Id: Ife7add5646afb94ec56a38f335112ab70998b1b1
This commit is contained in:
Clay Gerrard 2013-11-18 14:24:55 -08:00
parent 8255810e7d
commit 092eb56e79

View File

@ -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