logilab-astng #109988 Unittest failures with Python 3 [validation pending]

Hello, I'm reporting the unittest errors I'm receiving while updating the debian packages:

=======================  unittest_python3.py  ========================
.
=======================  unittest_manager.py  ========================
/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/common/testlib.py:1087: DeprecationWarning: Please use assertTrue instead.
  self.assert_(isinstance(obj, klass), msg)
unittest_manager.py:50: DeprecationWarning: Please use assertTrue instead.
  self.failUnless('__setattr__' in astng)
..unittest_manager.py:61: DeprecationWarning: Please use assertTrue instead.
  module.file)
...EE.
======================================================================
ERROR: test_from_directory (unittest_manager.ASTNGManagerTC)
----------------------------------------------------------------------
Traceback (most recent call last)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/test/unittest_manager.py", line 78, in test_from_directory
    obj = self.manager.project_from_files([DATA], _silent_no_wrap, 'data')
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/manager.py", line 263, in project_from_files
    astng = func_wrapper(self.astng_from_file, fpath)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/manager.py", line 51, in _silent_no_wrap
    return func(modname)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/manager.py", line 107, in astng_from_file
    return ASTNGBuilder(self).file_build(filepath, modname)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/builder.py", line 129, in file_build
    node = self.string_build(data, modname, path)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/builder.py", line 135, in string_build
    module = self._data_build(data, modname, path)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/builder.py", line 151, in _data_build
    node = parse(data + '\n')
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/builder.py", line 41, in parse
    return compile(string, "", 'exec', PyCF_ONLY_AST)
  File "", line 22
    print '!!!'
              ^
SyntaxError: invalid syntax

                              no stdout                               
                              no stderr                               
======================================================================
ERROR: test_project_node (unittest_manager.ASTNGManagerTC)
----------------------------------------------------------------------
Traceback (most recent call last)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/test/unittest_manager.py", line 83, in test_project_node
    obj = self.manager.project_from_files([DATA], _silent_no_wrap, 'data')
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/manager.py", line 263, in project_from_files
    astng = func_wrapper(self.astng_from_file, fpath)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/manager.py", line 51, in _silent_no_wrap
    return func(modname)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/manager.py", line 107, in astng_from_file
    return ASTNGBuilder(self).file_build(filepath, modname)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/builder.py", line 129, in file_build
    node = self.string_build(data, modname, path)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/builder.py", line 135, in string_build
    module = self._data_build(data, modname, path)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/builder.py", line 151, in _data_build
    node = parse(data + '\n')
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/builder.py", line 41, in parse
    return compile(string, "", 'exec', PyCF_ONLY_AST)
  File "", line 22
    print '!!!'
              ^
SyntaxError: invalid syntax

                              no stdout                               
                              no stderr                               
=======================  unittest_builder.py  ========================
unhandled exception occurred while testing unittest_builder
Traceback (most recent call last):
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/common/pytest.py", line 429, in testfile
    options=self.options, outstream=sys.stderr)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/common/pytest.py", line 765, in __init__
    testLoader=NonStrictTestLoader())
  File "/usr/lib/python3.2/unittest/main.py", line 94, in __init__
    self.module = __import__(module)
  File "unittest_builder.py", line 38, in 
    from unittest_inference import get_name_node
  File "unittest_inference.py", line 169
    self.failUnlessEqual(const.value, u"glup")
                                            ^
SyntaxError: invalid syntax
========================  unittest_utils.py  =========================
...
=====================  unittest_scoped_nodes.py  =====================
unhandled exception occurred while testing unittest_scoped_nodes
Traceback (most recent call last):
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/common/pytest.py", line 429, in testfile
    options=self.options, outstream=sys.stderr)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/common/pytest.py", line 765, in __init__
    testLoader=NonStrictTestLoader())
  File "/usr/lib/python3.2/unittest/main.py", line 94, in __init__
    self.module = __import__(module)
  File "unittest_scoped_nodes.py", line 36, in 
    MODULE = abuilder.file_build(join(DATA, 'module.py'), 'data.module')
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/builder.py", line 129, in file_build
    node = self.string_build(data, modname, path)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/builder.py", line 135, in string_build
    module = self._data_build(data, modname, path)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/builder.py", line 151, in _data_build
    node = parse(data + '\n')
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/astng/builder.py", line 41, in parse
    return compile(string, "", 'exec', PyCF_ONLY_AST)
  File "", line 22
    print '!!!'
              ^
SyntaxError: invalid syntax
========================  unittest_lookup.py  ========================
unhandled exception occurred while testing unittest_lookup
Traceback (most recent call last):
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/common/pytest.py", line 429, in testfile
    options=self.options, outstream=sys.stderr)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/common/pytest.py", line 765, in __init__
    testLoader=NonStrictTestLoader())
  File "/usr/lib/python3.2/unittest/main.py", line 94, in __init__
    self.module = __import__(module)
  File "unittest_lookup.py", line 42, in 
    from unittest_inference import get_name_node
  File "unittest_inference.py", line 169
    self.failUnlessEqual(const.value, u"glup")
                                            ^
SyntaxError: invalid syntax
======================  unittest_inspector.py  =======================
unittest_inspector.py:66: DeprecationWarning: Please use assertTrue instead.
  self.assert_(hasattr(klass, 'implements'))
unittest_inspector.py:68: DeprecationWarning: Please use assertTrue instead.
  self.assert_(isinstance(klass.implements[0], nodes.Class))
unittest_inspector.py:71: DeprecationWarning: Please use assertTrue instead.
  self.assert_(hasattr(klass, 'implements'))
.unittest_inspector.py:88: DeprecationWarning: Please use assertTrue instead.
  self.assert_(hasattr(klass, 'instance_attrs_type'))
unittest_inspector.py:93: DeprecationWarning: Please use assertTrue instead.
  self.assert_(isinstance(type_dict['relation'][0], Instance), type_dict['relation'])
unittest_inspector.py:95: DeprecationWarning: Please use assertTrue instead.
  self.assert_(isinstance(type_dict['toto'][0], Instance), type_dict['toto'])
unittest_inspector.py:97: DeprecationWarning: Please use assertTrue instead.
  self.assert_(type_dict['_id'][0] is YES, type_dict['_id'])
.unittest_inspector.py:76: DeprecationWarning: Please use assertTrue instead.
  self.assert_(hasattr(klass, 'locals_type'))
....
========================  unittest_nodes.py  =========================
unhandled exception occurred while testing unittest_nodes
Traceback (most recent call last):
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/common/pytest.py", line 429, in testfile
    options=self.options, outstream=sys.stderr)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/common/pytest.py", line 765, in __init__
    testLoader=NonStrictTestLoader())
  File "/usr/lib/python3.2/unittest/main.py", line 94, in __init__
    self.module = __import__(module)
  File "unittest_nodes.py", line 355
    self._test(u'a')
                  ^
SyntaxError: invalid syntax
=======================  unittest_regrtest.py  =======================
.ES.FES.
======================================================================
ERROR: test_module_path (unittest_regrtest.NonRegressionTC)
----------------------------------------------------------------------
Traceback (most recent call last)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/test/unittest_regrtest.py", line 52, in test_module_path
    package = mod.igetattr('package').next()
AttributeError: 'generator' object has no attribute 'next'

                              no stdout                               
                              no stderr                               
======================================================================
ERROR: test_package_sidepackage (unittest_regrtest.NonRegressionTC)
----------------------------------------------------------------------
Traceback (most recent call last)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/test/unittest_regrtest.py", line 68, in test_package_sidepackage
    subpackage = package.getattr('sidepackage')[0].infer().next()
AttributeError: 'generator' object has no attribute 'next'

                              no stdout                               
                              no stderr                               
======================================================================
FAIL: test_numpy_crash (unittest_regrtest.NonRegressionTC)
test don't crash on numpy
----------------------------------------------------------------------
Traceback (most recent call last)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/test/unittest_regrtest.py", line 138, in test_numpy_crash
    self.assertIsInstance(infered[0], Instance)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/common/testlib.py", line 1087, in assertIsInstance
    self.assert_(isinstance(obj, klass), msg)
  File "/usr/lib/python3.2/unittest/case.py", line 1170, in deprecated_func
    return original_func(*args, **kwargs)
  File "/usr/lib/python3.2/unittest/case.py", line 506, in assertTrue
    raise self.failureException(msg)
AssertionError: False is not true : YES is not an instance of  but of 

                              no stdout                               
                              no stderr                               
======================================================================
SKIPPED: test_new_style_class_detection (unittest_regrtest.NonRegressionTC)
	test skipped: pygtk is not available
======================================================================
SKIPPED: test_pylint_config_attr (unittest_regrtest.NonRegressionTC)
	pylint not available
======================  unittest_inference.py  =======================
unhandled exception occurred while testing unittest_inference
Traceback (most recent call last):
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/common/pytest.py", line 429, in testfile
    options=self.options, outstream=sys.stderr)
  File "/home/morph/deb/build-area/logilab-astng-0.24.1/build/lib/logilab/common/pytest.py", line 765, in __init__
    testLoader=NonStrictTestLoader())
  File "/usr/lib/python3.2/unittest/main.py", line 94, in __init__
    self.module = __import__(module)
  File "unittest_inference.py", line 169
    self.failUnlessEqual(const.value, u"glup")
                                            ^
SyntaxError: invalid syntax
going into /home/morph/deb/build-area/logilab-astng-0.24.1/test
*******************************************************************************
Ran 29 test cases in 1.94s (0.45s CPU), 9 errors, 1 failures, 2 skipped
3 modules OK (7 failed)
Cheers, Sandro
prioritynormal
typebug
appeared in0.24.1
done in0.24.2
load left0.000
closed by#990:f64b5ca176ea