On 02 avril 13:41, Claudiu Popa wrote:
> The errors in the Python 3.3 output aren't that important. The problem
> is with func_import_syntax_error.py, which
> triggers a Module.getattr over the input folder. This triggers the
> following code. It ends with NotFoundError and with
> passing tests. I don't know if that print_exc is required anymore (and
> why this code isn't triggered on Python 2,
> hadn't tested it there).
> 
>             try:
>                 return [self.import_module(name, relative_only=True)]
>             except AstroidBuildingException:
>                 raise NotFoundError(name)
>             except Exception:# XXX pylint tests never pass here; do we need 
> it?
>                 import traceback
>                 traceback.print_exc()
>             raise NotFoundError(name)
> 

we should probably catch specifically SyntaxError and avoid printing error in
such case.
-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to