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
This commit is contained in:
parent
5989849512
commit
91deed871b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user