summaryrefslogtreecommitdiffstats
path: root/test/unit/common/test_Glusterfs.py
diff options
context:
space:
mode:
authorPeter Portante <peter.portante@redhat.com>2013-04-30 18:26:03 -0400
committerPeter Portante <pportant@redhat.com>2013-05-10 07:17:20 -0700
commitec8f90d98b40e80218e4b9bffa15397f8d7b49c7 (patch)
treee05068383b47ad5a4120c453ffaefd59b45b6c5a /test/unit/common/test_Glusterfs.py
parent3a75da67cbcf09c19df2a9dca2f576d51ed2191d (diff)
Fix failing Glusterfs object unit test
Fix failing unit test by properly setting the errno field value in the mock object. Change-Id: I86a60c74d7d88736612f84e0d00ab4d5a94b533c Signed-off-by: Peter Portante <peter.portante@redhat.com> Reviewed-on: http://review.gluster.org/4967 Reviewed-by: Luis Pabon <lpabon@redhat.com> Reviewed-by: Mohammed Junaid <junaid@redhat.com> Tested-by: Mohammed Junaid <junaid@redhat.com>
Diffstat (limited to 'test/unit/common/test_Glusterfs.py')
-rw-r--r--test/unit/common/test_Glusterfs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/common/test_Glusterfs.py b/test/unit/common/test_Glusterfs.py
index 7de060a..3ff78ca 100644
--- a/test/unit/common/test_Glusterfs.py
+++ b/test/unit/common/test_Glusterfs.py
@@ -28,7 +28,7 @@ def mock_os_system(cmd):
return False
def mock_fcntl_lockf(f, *a, **kw):
- raise IOError(errno.EAGAIN)
+ raise IOError(errno.EAGAIN, os.strerror(errno.EAGAIN))
def _init():
global _RUN_DIR, _OS_SYSTEM, _FCNTL_LOCKF