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

Method test_showlocals

testing/test_terminal.py:924–940  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

922 result.stdout.no_fnmatch_line("*= FAILURES =*")
923
924 def test_showlocals(self, pytester: Pytester) -> None:
925 p1 = pytester.makepyfile(
926 """
927 def test_showlocals():
928 x = 3
929 y = "x" * 5000
930 assert 0
931 """
932 )
933 result = pytester.runpytest(p1, "-l")
934 result.stdout.fnmatch_lines(
935 [
936 # "_ _ * Locals *",
937 "x* = 3",
938 "y* = 'xxxxxx*",
939 ]
940 )
941
942 def test_showlocals_short(self, pytester: Pytester) -> None:
943 p1 = pytester.makepyfile(

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected