This commit is contained in:
@@ -54,11 +54,11 @@ def test_traceable(cls, entry, expected):
|
||||
"value, cutoff, expected",
|
||||
[
|
||||
("abc", 10, "'abc'"),
|
||||
("a" * 100, 10, "'aaaaaaaaaaa..."),
|
||||
("a" * 100, 10, "'aaaaaaaaaa..."),
|
||||
(12345, 10, "12345"),
|
||||
([0]*100, 15, str(repr([0]*100))[:15] + "..."),
|
||||
(None, 10, "None"),
|
||||
(type("Obj", (), {"__repr__": lambda self: "Obj(" + "x"*50 + ")"})(), 20, "Obj(xxxxxxxxxxxxxxxxxx..."),
|
||||
(type("Obj", (), {"__repr__": lambda self: "Obj(" + "x"*50 + ")"})(), 20, "Obj(xxxxxxxxxxxxxxxxx..."),
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user