Skip to content

Commit dee8d27

Browse files
committed
number of significant digits seems to have changed
the only thing i can imagine is that python treats an iterable differently when it’s not homogenous (now that we don’t have `NaN`) anymore for example in otherwise float-y arrays.
1 parent 8734384 commit dee8d27

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plotly/tests/test_optional/test_utils/test_utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,7 @@ def test_masked_constants_example():
275275

276276
jy = json.dumps(renderer.plotly_fig['data'][1]['y'],
277277
cls=utils.PlotlyJSONEncoder)
278-
if six.PY3:
279-
assert(jy == '[-398.11793027, -398.11792966, -398.11786308, null]')
280-
else:
281-
assert(jy == '[-398.11793026999999, -398.11792966000002, '
282-
'-398.11786308000001, null]')
278+
assert(jy == '[-398.11793027, -398.11792966, -398.11786308, null]')
283279

284280

285281
def test_numpy_dates():

0 commit comments

Comments
 (0)