[pypy-svn] r66188 - pypy/trunk/pypy/tool/test
arigo at codespeak.net
arigo at codespeak.net
Mon Jul 13 15:49:06 CEST 2009
Author: arigo
Date: Mon Jul 13 15:49:05 2009
New Revision: 66188
Modified:
pypy/trunk/pypy/tool/test/test_compat.py
Log:
Fix the test, mostly randomly (what is the point of this test?).
Modified: pypy/trunk/pypy/tool/test/test_compat.py
==============================================================================
--- pypy/trunk/pypy/tool/test/test_compat.py (original)
+++ pypy/trunk/pypy/tool/test/test_compat.py Mon Jul 13 15:49:05 2009
@@ -1,5 +1,5 @@
def test_base_exc():
from pypy.tool.compat import BaseException
- assert KeyboardInterrupt.__mro__[-2] is BaseException
- assert ValueError.__mro__[-2] is BaseException
+ assert issubclass(KeyboardInterrupt, BaseException)
+ assert issubclass(ValueError, BaseException)
More information about the Pypy-commit
mailing list