We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f2777b commit 8734384Copy full SHA for 8734384
plotly/tests/test_optional/test_utils/test_utils.py
@@ -11,6 +11,7 @@
11
import numpy as np
12
import json
13
import pandas as pd
14
+import six
15
from pandas.util.testing import assert_series_equal
16
import matplotlib.pyplot as plt
17
@@ -274,8 +275,11 @@ def test_masked_constants_example():
274
275
276
jy = json.dumps(renderer.plotly_fig['data'][1]['y'],
277
cls=utils.PlotlyJSONEncoder)
- assert(jy == '[-398.11793026999999, -398.11792966000002, '
278
- '-398.11786308000001, null]')
+ 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]')
283
284
285
def test_numpy_dates():
0 commit comments