MCPcopy Index your code
hub / github.com/python/cpython / test_from_import

Method test_from_import

Lib/test/test_ast/test_ast.py:355–357  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

353 self.assertIsNone(slc.step)
354
355 def test_from_import(self):
356 im = ast.parse("from . import y").body[0]
357 self.assertIsNone(im.module)
358
359 def test_non_interned_future_from_ast(self):
360 mod = ast.parse("from __future__ import division")

Callers

nothing calls this directly

Calls 2

assertIsNoneMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected