(self, pytester, format)
| 1413 | |
| 1414 | class TestDoctestReportingOption: |
| 1415 | def _run_doctest_report(self, pytester, format): |
| 1416 | pytester.makepyfile( |
| 1417 | """ |
| 1418 | def foo(): |
| 1419 | ''' |
| 1420 | >>> foo() |
| 1421 | a b |
| 1422 | 0 1 4 |
| 1423 | 1 2 4 |
| 1424 | 2 3 6 |
| 1425 | ''' |
| 1426 | print(' a b\\n' |
| 1427 | '0 1 4\\n' |
| 1428 | '1 2 5\\n' |
| 1429 | '2 3 6') |
| 1430 | """ |
| 1431 | ) |
| 1432 | return pytester.runpytest("--doctest-modules", "--doctest-report", format) |
| 1433 | |
| 1434 | @pytest.mark.parametrize("format", ["udiff", "UDIFF", "uDiFf"]) |
| 1435 | def test_doctest_report_udiff(self, pytester, format): |
no test coverage detected