(pytester: Pytester)
| 1604 | |
| 1605 | |
| 1606 | def test_raise_unprintable_assertion_error(pytester: Pytester) -> None: |
| 1607 | pytester.makepyfile( |
| 1608 | r""" |
| 1609 | def test_raise_assertion_error(): |
| 1610 | raise AssertionError('\xff') |
| 1611 | """ |
| 1612 | ) |
| 1613 | result = pytester.runpytest() |
| 1614 | result.stdout.fnmatch_lines( |
| 1615 | [r"> raise AssertionError('\xff')", "E AssertionError: *"] |
| 1616 | ) |
| 1617 | |
| 1618 | |
| 1619 | def test_raise_assertion_error_raisin_repr(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected