Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b73659

Browse files
committed
compare python obj, not serialization.
1 parent dee8d27 commit 2b73659

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plotly/tests/test_optional/test_utils/test_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ def test_masked_constants_example():
275275

276276
jy = json.dumps(renderer.plotly_fig['data'][1]['y'],
277277
cls=utils.PlotlyJSONEncoder)
278-
assert(jy == '[-398.11793027, -398.11792966, -398.11786308, null]')
278+
print(jy)
279+
array = json.loads(jy)
280+
assert(array == [-398.11793027, -398.11792966, -398.11786308, None])
279281

280282

281283
def test_numpy_dates():

0 commit comments

Comments
 (0)