[New-bugs-announce] [issue10338] test_lib2to3 failure on buildbot x86 debian parallel 3.x: node is None in find_root()

STINNER Victor report at bugs.python.org
Sat Nov 6 12:12:38 CET 2010


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

http://www.python.org/dev/buildbot/builders/x86%20debian%20parallel%203.x/builds/806/steps/test/logs/stdio

test test_lib2to3 failed -- multiple errors occurred

======================================================================
ERROR: test_bom (lib2to3.tests.test_refactor.TestRefactoringTool)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/tests/test_refactor.py", line 239, in test_bom
    data = self.check_file_refactoring(fn)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/tests/test_refactor.py", line 186, in check_file_refactoring
    rt.refactor_file(test_file)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/refactor.py", line 348, in refactor_file
    tree = self.refactor_string(input, filename)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/refactor.py", line 380, in refactor_string
    self.refactor_tree(tree, name)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/refactor.py", line 441, in refactor_tree
    find_root(node)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/fixer_util.py", line 276, in find_root
    while node.type != syms.file_input:
AttributeError: 'NoneType' object has no attribute 'type'

======================================================================
ERROR: test_crlf_newlines (lib2to3.tests.test_refactor.TestRefactoringTool)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/tests/test_refactor.py", line 248, in test_crlf_newlines
    self.check_file_refactoring(fn, fixes)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/tests/test_refactor.py", line 186, in check_file_refactoring
    rt.refactor_file(test_file)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/refactor.py", line 348, in refactor_file
    tree = self.refactor_string(input, filename)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/refactor.py", line 380, in refactor_string
    self.refactor_tree(tree, name)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/refactor.py", line 441, in refactor_tree
    find_root(node)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/fixer_util.py", line 276, in find_root
    while node.type != syms.file_input:
AttributeError: 'NoneType' object has no attribute 'type'

======================================================================
ERROR: test_file_encoding (lib2to3.tests.test_refactor.TestRefactoringTool)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/tests/test_refactor.py", line 235, in test_file_encoding
    self.check_file_refactoring(fn)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/tests/test_refactor.py", line 186, in check_file_refactoring
    rt.refactor_file(test_file)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/refactor.py", line 348, in refactor_file
    tree = self.refactor_string(input, filename)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/refactor.py", line 380, in refactor_string
    self.refactor_tree(tree, name)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/refactor.py", line 441, in refactor_tree
    find_root(node)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/fixer_util.py", line 276, in find_root
    while node.type != syms.file_input:
AttributeError: 'NoneType' object has no attribute 'type'

======================================================================
ERROR: test_unencodable_diff (lib2to3.tests.test_main.TestMain)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/tests/test_main.py", line 36, in test_unencodable_diff
    ret = self.run_2to3_capture(["-"], input_stream, out_enc, err)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/tests/test_main.py", line 25, in run_2to3_capture
    return main.main("lib2to3.fixes", args)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/main.py", line 168, in main
    rt.refactor_stdin()
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/refactor.py", line 393, in refactor_stdin
    tree = self.refactor_string(input, "<stdin>")
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/refactor.py", line 380, in refactor_string
    self.refactor_tree(tree, name)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/refactor.py", line 441, in refactor_tree
    find_root(node)
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/lib2to3/fixer_util.py", line 276, in find_root
    while node.type != syms.file_input:
AttributeError: 'NoneType' object has no attribute 'type'

----------------------------------------------------------------------

----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 120607
nosy: benjamin.peterson, haypo
priority: normal
severity: normal
status: open
title: test_lib2to3 failure on buildbot x86 debian parallel 3.x: node is None in find_root()
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10338>
_______________________________________


More information about the New-bugs-announce mailing list