Commit 525c1b46 authored by Thomas Goirand's avatar Thomas Goirand

Attempt to fix unit test.

parent 17e17e40
Description: Attempt to fix
Author: Thomas Goirand <>
The information above should follow the Patch Tagging Guidelines, please
checkout to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2019-07-15
--- swift-2.21.10+2019.07.13+git.4643412bd1.orig/test/unit/
+++ swift-2.21.10+2019.07.13+git.4643412bd1/test/unit/
@@ -1367,7 +1367,7 @@ def xattr_supported_check():
fd, tmppath = mkstemp()
xattr.setxattr(fd, 'user.swift.testing_key', big_val)
except IOError as e:
- if errno.errorcode.get(e.errno) in ('ENOSPC', 'ENOTSUP', 'EOPNOTSUPP'):
+ if errno.errorcode.get(e.errno) in ('ENOSPC', 'ENOTSUP', 'EOPNOTSUPP', 'ERANGE'):
# filesystem does not support xattr of this size
return False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment