test_stringutils.py: Fix test failure on CentOS builder, possibly Python 2.4.3-related.

This commit is contained in:
david-sarah 2010-06-08 23:50:56 -07:00
parent ffd1c5aca5
commit 5786874d38

View File

@ -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,))