logilab-astng #33638 Relative imports broken [validation pending]

Relative imports don't seem to work at all. I have the following package layout (find . -name '*.py' -exec sh -c 'echo "## File $0:"; cat "$0"; echo' '{}' ';'):

## File ./test.py:
#!/usr/bin/env python2.6
import testpackage.mod_a

## File ./testpackage/__init__.py:

## File ./testpackage/mod_a.py:
from . import mod_b

## File ./testpackage/mod_b.py:
print "Hello from mod_b"

Pylint gives:

************* Module testpackage.mod_a
F0401:  1: Unable to import %r
W0611:  1: Unused import mod_b

This happens in all my packages for all relative imports, regardless of whether __future__.absolute_imports is imported. Interestingly, this used to work in old versions of Pylint (e.g., pylint 0.15.2, which comes with Ubuntu Jaunty).

done in0.20.4
load left0.000
closed by<not specified>