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

Method test_slice

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

Source from the content-addressed store, hash-verified

347 compile(mod, "a", "exec", optimize=opt_level)
348
349 def test_slice(self):
350 slc = ast.parse("x[::]").body[0].value.slice
351 self.assertIsNone(slc.upper)
352 self.assertIsNone(slc.lower)
353 self.assertIsNone(slc.step)
354
355 def test_from_import(self):
356 im = ast.parse("from . import y").body[0]

Callers

nothing calls this directly

Calls 2

assertIsNoneMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected