From 5786874d38edc6534b1c729118aa270c6fbf1f3e Mon Sep 17 00:00:00 2001 From: david-sarah Date: Tue, 8 Jun 2010 23:50:56 -0700 Subject: [PATCH] test_stringutils.py: Fix test failure on CentOS builder, possibly Python 2.4.3-related. --- src/allmydata/test/test_stringutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/test/test_stringutils.py b/src/allmydata/test/test_stringutils.py index 413eae88..df3af958 100644 --- a/src/allmydata/test/test_stringutils.py +++ b/src/allmydata/test/test_stringutils.py @@ -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,)) -- 2.45.2