Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r84436:8484d4212d79
Date: 2016-05-14 11:26 -0700
http://bitbucket.org/pypy/pypy/changeset/8484d4212d79/

Log:    cpython TypeError impl detail

diff --git a/lib-python/3/test/test_exceptions.py 
b/lib-python/3/test/test_exceptions.py
--- a/lib-python/3/test/test_exceptions.py
+++ b/lib-python/3/test/test_exceptions.py
@@ -397,10 +397,11 @@
             self.fail("No exception raised")
 
     def testInvalidAttrs(self):
+        delerrs = (AttributeError, TypeError)
         self.assertRaises(TypeError, setattr, Exception(), '__cause__', 1)
-        self.assertRaises(TypeError, delattr, Exception(), '__cause__')
+        self.assertRaises(delerrs, delattr, Exception(), '__cause__')
         self.assertRaises(TypeError, setattr, Exception(), '__context__', 1)
-        self.assertRaises(TypeError, delattr, Exception(), '__context__')
+        self.assertRaises(delerrs, delattr, Exception(), '__context__')
 
     def testNoneClearsTracebackAttr(self):
         try:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to