Skip to content

Commit 6e4a272

Browse files
committed
Convert __repr__() test to use assertEqual for better error messages on circle
1 parent 693e1a2 commit 6e4a272

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

plotly/tests/test_core/test_graph_objs/test_repr.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_trace_repr(self):
3535
74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
3636
92, 93, 94, 95, 96, 97, 98, 99]
3737
})"""
38-
assert scatt.__repr__() == expected
38+
self.assertEqual(scatt.__repr__(), expected)
3939

4040
def test_trace_repr_elided(self):
4141
N = 1000
@@ -51,7 +51,7 @@ def test_trace_repr_elided(self):
5151
'type': 'scatter',
5252
'y': [0, 1, 2, ..., 997, 998, 999]
5353
})"""
54-
assert scatt.__repr__() == expected
54+
self.assertEqual(scatt.__repr__(), expected)
5555

5656
def test_trace_repr_numpy(self):
5757
try:
@@ -109,5 +109,4 @@ def test_trace_repr_numpy_elided(self):
109109
'type': 'scatter',
110110
'y': array([ 0., 1., 2., ..., 997., 998., 999.])
111111
})"""
112-
113-
assert scatt.__repr__() == expected
112+
self.assertEqual(scatt.__repr__(), expected)

0 commit comments

Comments
 (0)