MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_getrange

Method test_getrange

testing/code/test_source.py:91–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 )
90
91 def test_getrange(self) -> None:
92 x = self.source[0:2]
93 assert len(x.lines) == 2
94 assert str(x) == "def f(x):\n pass"
95
96 def test_getrange_step_not_supported(self) -> None:
97 with pytest.raises(IndexError, match=r"step"):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected