when no module is given in a 'from' relative import, make ImportFrom.module NULL
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py
index eac42d3..89850f6 100644
--- a/Lib/test/test_ast.py
+++ b/Lib/test/test_ast.py
@@ -152,6 +152,10 @@
         self.assertIsNone(slc.lower)
         self.assertIsNone(slc.step)
 
+    def test_from_import(self):
+        im = ast.parse("from . import y").body[0]
+        self.assertIsNone(im.module)
+
     def test_nodeclasses(self):
         x = ast.BinOp(1, 2, 3, lineno=0)
         self.assertEquals(x.left, 1)