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