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 11, 2016
1 parent bf6c071 commit dfb8bb7
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 @@ -283,7 +283,7 @@ def test_image_boolean_array(self):
np.array([[0, 1], [1, 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 dfb8bb7

Please sign in to comment.