[pypy-svn] r59545 - pypy/trunk/lib-python/modified-2.5.2/test
arigo at codespeak.net
arigo at codespeak.net
Thu Oct 30 12:41:49 CET 2008
Author: arigo
Date: Thu Oct 30 12:41:49 2008
New Revision: 59545
Modified:
pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py
Log:
Generalize the catch.
Modified: pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py (original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py Thu Oct 30 12:41:49 2008
@@ -2843,7 +2843,7 @@
raise TestFailed, "shouldn't allow %r.__class__ = %r" % (x, C)
try:
delattr(x, "__class__")
- except TypeError:
+ except (TypeError, AttributeError):
pass
else:
raise TestFailed, "shouldn't allow del %r.__class__" % x
More information about the Pypy-commit
mailing list