From ec8f90d98b40e80218e4b9bffa15397f8d7b49c7 Mon Sep 17 00:00:00 2001 From: Peter Portante Date: Tue, 30 Apr 2013 18:26:03 -0400 Subject: 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 Reviewed-on: http://review.gluster.org/4967 Reviewed-by: Luis Pabon Reviewed-by: Mohammed Junaid Tested-by: Mohammed Junaid --- test/unit/common/test_Glusterfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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 -- cgit