Skip to content

Commit

Permalink
Python3 fix in test
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Dec 10, 2016
1 parent 69902a0 commit b06636a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testplotinstantiation.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def history_callback(x, history=deque(maxlen=10)):
self.assertEqual(y, np.arange(10, 20))

def test_points_non_numeric_size_warning(self):
data = (range(10), range(10), map(chr, range(94,104)))
data = (np.arange(10), np.arange(10), list(map(chr, range(94,104))))
points = Points(data, vdims=['z'])(plot=dict(size_index=2))
with ParamLogStream() as log:
plot = mpl_renderer.get_plot(points)
Expand Down Expand Up @@ -273,7 +273,7 @@ def test_bars_suppress_legend(self):
assert len(fig.legend[0].items) == 0

def test_points_non_numeric_size_warning(self):
data = (range(10), range(10), map(chr, range(94,104)))
data = (np.arange(10), np.arange(10), list(map(chr, range(94,104))))
points = Points(data, vdims=['z'])(plot=dict(size_index=2))
with ParamLogStream() as log:
plot = bokeh_renderer.get_plot(points)
Expand Down

0 comments on commit b06636a

Please sign in to comment.