(pytester: Pytester)
| 1617 | |
| 1618 | |
| 1619 | def test_raise_assertion_error_raisin_repr(pytester: Pytester) -> None: |
| 1620 | pytester.makepyfile( |
| 1621 | """ |
| 1622 | class RaisingRepr(object): |
| 1623 | def __repr__(self): |
| 1624 | raise Exception() |
| 1625 | def test_raising_repr(): |
| 1626 | raise AssertionError(RaisingRepr()) |
| 1627 | """ |
| 1628 | ) |
| 1629 | result = pytester.runpytest() |
| 1630 | result.stdout.fnmatch_lines( |
| 1631 | ["E AssertionError: <unprintable AssertionError object>"] |
| 1632 | ) |
| 1633 | |
| 1634 | |
| 1635 | def test_issue_1944(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected