[pypy-svn] r15964 - in pypy/dist/pypy/interpreter/pyparser: . test

adim at codespeak.net adim at codespeak.net
Thu Aug 11 16:50:44 CEST 2005


Author: adim
Date: Thu Aug 11 16:50:42 2005
New Revision: 15964

Modified:
   pypy/dist/pypy/interpreter/pyparser/astbuilder.py
   pypy/dist/pypy/interpreter/pyparser/test/test_astbuilder.py
Log:
removed inconsistent assert

Modified: pypy/dist/pypy/interpreter/pyparser/astbuilder.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/astbuilder.py	(original)
+++ pypy/dist/pypy/interpreter/pyparser/astbuilder.py	Thu Aug 11 16:50:42 2005
@@ -836,7 +836,6 @@
         base = L[3]
         if isinstance(base, ast.Tuple):
             for node in base.nodes:
-                assert isinstance(node, ast.Name)
                 basenames.append(node)
         else:
             basenames.append(base)

Modified: pypy/dist/pypy/interpreter/pyparser/test/test_astbuilder.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/test/test_astbuilder.py	(original)
+++ pypy/dist/pypy/interpreter/pyparser/test/test_astbuilder.py	Thu Aug 11 16:50:42 2005
@@ -313,6 +313,10 @@
     "def f(a, b, (c, (d, e), f, (g, h)), i): pass",
     ]
 
+one_stmt_classdefs = [
+    "class Pdb(bdb.Bdb, cmd.Cmd): pass",
+    ]
+
 docstrings = [
     '''def foo():
     """foo docstring"""
@@ -355,6 +359,7 @@
     ]
 
 EXEC_INPUTS = [
+    one_stmt_classdefs,
     one_stmt_funcdefs,
     if_stmts,
     tryexcepts,
@@ -445,8 +450,6 @@
 def test_on_stdlib():
     py.test.skip('too ambitious for now (and time consuming)')
     for basename in os.listdir(STDLIB_PATH):
-        if basename != 'warnings.py':
-            continue
         if not basename.endswith('.py'):
             continue
         filepath = os.path.join(STDLIB_PATH, basename)



More information about the Pypy-commit mailing list