(self, pytester: Pytester)
| 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( |
nothing calls this directly
no test coverage detected