mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-02 03:06:41 +00:00
test_stringutils.py: Fix test failure on CentOS builder, possibly Python 2.4.3-related.
This commit is contained in:
parent
ffd1c5aca5
commit
5786874d38
@ -205,7 +205,7 @@ class StringUtils(ReallyEqualMixin):
|
||||
|
||||
try:
|
||||
u"test".encode(self.filesystem_encoding)
|
||||
except LookupError:
|
||||
except (LookupError, AttributeError):
|
||||
raise unittest.SkipTest("This platform does not support the '%s' filesystem encoding "
|
||||
"that we are testing for the benefit of a different platform."
|
||||
% (self.filesystem_encoding,))
|
||||
@ -228,7 +228,7 @@ class StringUtils(ReallyEqualMixin):
|
||||
|
||||
try:
|
||||
u"test".encode(self.filesystem_encoding)
|
||||
except LookupError:
|
||||
except (LookupError, AttributeError):
|
||||
raise unittest.SkipTest("This platform does not support the '%s' filesystem encoding "
|
||||
"that we are testing for the benefit of a different platform."
|
||||
% (self.filesystem_encoding,))
|
||||
|
Loading…
Reference in New Issue
Block a user