[pypy-commit] pypy py3.3: no longer a need for this workaround

pjenvey noreply at buildbot.pypy.org
Sun Aug 3 22:07:11 CEST 2014


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3.3
Changeset: r72686:531fb5ccd8c9
Date: 2014-08-03 13:06 -0700
http://bitbucket.org/pypy/pypy/changeset/531fb5ccd8c9/

Log:	no longer a need for this workaround

diff --git a/lib-python/3/test/test_builtin.py b/lib-python/3/test/test_builtin.py
--- a/lib-python/3/test/test_builtin.py
+++ b/lib-python/3/test/test_builtin.py
@@ -424,9 +424,7 @@
         try:
             raise IndexError
         except:
-            methods = [meth for meth in dir(sys.exc_info()[2])
-                       if not meth.startswith('_')]
-            self.assertEqual(len(methods), 4)
+            self.assertEqual(len(dir(sys.exc_info()[2])), 4)
 
         # test that object has a __dir__()
         self.assertEqual(sorted([].__dir__()), dir([]))


More information about the pypy-commit mailing list