This commit is contained in:
Will McGugan 2021-02-20 11:05:21 +00:00
parent d359770970
commit a49e595996
20 changed files with 203 additions and 88 deletions

View file

@ -143,3 +143,11 @@ def test_newline():
result = console.end_capture()
expected = "\n(\n 1,\n)\n"
assert result == expected
def test_empty_repr():
class Foo:
def __repr__(self):
return ""
assert pretty_repr(Foo()) == ""