[pypy-commit] pypy py3.3: Remove debugging help in the test.

kvas noreply at buildbot.pypy.org
Sun Aug 3 21:58:21 CEST 2014


Author: Vasily Kuznetsov <kvas.it at gmail.com>
Branch: py3.3
Changeset: r72682:8e99253b142e
Date: 2014-08-02 15:54 +0200
http://bitbucket.org/pypy/pypy/changeset/8e99253b142e/

Log:	Remove debugging help in the test.

diff --git a/pypy/module/__builtin__/test/test_dir.py b/pypy/module/__builtin__/test/test_dir.py
--- a/pypy/module/__builtin__/test/test_dir.py
+++ b/pypy/module/__builtin__/test/test_dir.py
@@ -87,14 +87,10 @@
         """Test that builtin objects have sane __dir__()."""
         import sys
 
-        def check_dir(obj):
-            print(dir(obj))
-            assert sorted(obj.__dir__()) == dir(obj)
-
         for builtin in [sys, object(), [], {}, {1}, "", 1, (), sys,
                 map(ord, "abc"), filter(None, "abc"), zip([1, 2], [3, 4]),
                 compile('1', '', 'exec')]:
-            check_dir(builtin)
+            assert sorted(builtin.__dir__()) == dir(builtin)
 
     def test_dir_type(self):
         """Test .__dir__() and dir(...) behavior on types.


More information about the pypy-commit mailing list