Commits

Frank Wierzbicki committed a07997d

Allow AttributeError in Jython.

Comments (0)

Files changed (1)

Lib/test/test_functools.py

         self.assertRaises(ZeroDivisionError, self.thetype(f), 1, 0)
         self.assertRaises(ZeroDivisionError, self.thetype(f, y=0), 1)
 
-    @unittest.skip("FIXME: Not working in Jython.")
     def test_attributes(self):
         p = self.thetype(hex)
         try:
             del p.__dict__
         except TypeError:
             pass
+        except AttributeError:
+            #In some cases Jython raises AttributeError here.
+            pass
         else:
             self.fail('partial object allowed __dict__ to be deleted')