[Python-Dev] Lib/test/test_compiler.py fails
Neal Norwitz
nnorwitz at gmail.com
Fri Mar 3 21:22:07 CET 2006
Yup. It's fixed.
n
--
On 3/3/06, Matthew Fleming <mattjfleming at googlemail.com> wrote:
> testCompileLibrary (__main__.CompilerTest) ... compiling
> /home/splitscreen/src/python/python/Lib/dircache.py
> compiling
> /home/splitscreen/src/python/python/Lib/smtplib.py
> compiling /home/splitscreen/src/python/python/Lib/pickle.py
> ERROR
> testFlatten (__main__.CompilerTest) ... ok
> testLineNo (__main__.CompilerTest) ... ok
> testNewClassSyntax (__main__.CompilerTest) ... ok
> testYieldExpr (__main__.CompilerTest) ... ok
>
> ======================================================================
> ERROR: testCompileLibrary (__main__.CompilerTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "Lib/test/test_compiler.py", line 36, in testCompileLibrary
> compiler.compile(buf, basename, "exec")
> File
> "/home/splitscreen/src/python/python/Lib/compiler/pycodegen.py",
> line 64, in compile
> gen.compile()
> File
> "/home/splitscreen/src/python/python/Lib/compiler/pycodegen.py",
> line 112, in compile
> gen = ModuleCodeGenerator(tree)
> File
> "/home/splitscreen/src/python/python/Lib/compiler/pycodegen.py",
> line 1290, in __init__
> walk(tree, self)
> File
> "/home/splitscreen/src/python/python/Lib/compiler/visitor.py",
> line 106, in walk
> walker.preorder(tree, visitor)
> File
> "/home/splitscreen/src/python/python/Lib/compiler/visitor.py",
> line 63, in preorder
> self.dispatch(tree, *args) # XXX *args make sense?
> File
> "/home/splitscreen/src/python/python/Lib/compiler/visitor.py",
> line 57, in dispatch
> return meth(node, *args)
> File
> "/home/splitscreen/src/python/python/Lib/compiler/pycodegen.py",
> line 350, in visitModule
> self.visit(node.node)
> File
> "/home/splitscreen/src/python/python/Lib/compiler/visitor.py",
> line 57, in dispatch
> return meth(node, *args)
> File
> "/home/splitscreen/src/python/python/Lib/compiler/visitor.py",
> line 40, in default
> self.dispatch(child, *args)
> File
> "/home/splitscreen/src/python/python/Lib/compiler/visitor.py",
> line 57, in dispatch
> return meth(node, *args)
> File
> "/home/splitscreen/src/python/python/Lib/compiler/pycodegen.py",
> line 362, in visitFunction
> self._visitFuncOrLambda(node, isLambda=0)
> File
> "/home/splitscreen/src/python/python/Lib/compiler/pycodegen.py",
> line 380, in _visitFuncOrLambda
> walk(node.code, gen)
> File
> "/home/splitscreen/src/python/python/Lib/compiler/visitor.py",
> line 106, in walk
> walker.preorder(tree, visitor)
> File
> "/home/splitscreen/src/python/python/Lib/compiler/visitor.py",
> line 63, in preorder
> self.dispatch(tree, *args) # XXX *args make sense?
> File
> "/home/splitscreen/src/python/python/Lib/compiler/visitor.py",
> line 57, in dispatch
> return meth(node, *args)
> File
> "/home/splitscreen/src/python/python/Lib/compiler/visitor.py",
> line 40, in default
> self.dispatch(child, *args)
> File
> "/home/splitscreen/src/python/python/Lib/compiler/visitor.py",
> line 57, in dispatch
> return meth(node, *args)
> File
> "/home/splitscreen/src/python/python/Lib/compiler/pycodegen.py",
> line 894, in visitImport
> level = 0 if "absolute_import" in self.futures else -1
> AttributeError: FunctionCodeGenerator instance has no attribute 'futures'[in
> file pickle.py]
>
> ----------------------------------------------------------------------
> Ran 5 tests in 0.878s
>
> FAILED (errors=1)
>
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/nnorwitz%40gmail.com
>
>
>
More information about the Python-Dev
mailing list