From 91deed871bba196a7ac35e0b0baf63339f734e24 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 24 Nov 2013 09:11:04 -0600 Subject: [PATCH] Use a more portable errno in tests. ELIBBAD doesn't exist on OS X. The exact value we use here isn't important, so use something more portable. Change-Id: Id03dc1773f416a94bbd14ad31b2b2a70f16b9a51 --- test/unit/obj/test_diskfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/obj/test_diskfile.py b/test/unit/obj/test_diskfile.py index 90ab45b22a..e038636ed4 100644 --- a/test/unit/obj/test_diskfile.py +++ b/test/unit/obj/test_diskfile.py @@ -450,7 +450,7 @@ class TestObjectAuditLocationGenerator(unittest.TestCase): def splode_if_endswith(suffix): def sploder(path): if path.endswith(suffix): - raise OSError(errno.ELIBBAD, "don't try to ad-lib") + raise OSError(errno.EACCES, "don't try to ad-lib") else: return real_listdir(path) return sploder