Skip to content

Commit

Permalink
Unicode fixes for bokeh batched tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 3, 2017
1 parent c858ed7 commit 660a168
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testplotinstantiation.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def test_batched_points_size_and_color(self):
plot = bokeh_renderer.get_plot(overlay).subplots[()]
size = np.array([1, 1, 2, 2])
color = np.array(['#30a2da', '#30a2da', '#fc4f30', '#fc4f30'],
dtype='|S7')
dtype='<U7')
self.assertEqual(plot.handles['source'].data['color'], color)
self.assertEqual(plot.handles['source'].data['size'], size)

Expand All @@ -348,7 +348,7 @@ def test_batched_points_line_color_and_color(self):
plot = bokeh_renderer.get_plot(overlay).subplots[()]
line_color = np.array(['red', 'red', 'blue', 'blue'])
fill_color = np.array(['#30a2da', '#30a2da', '#fc4f30', '#fc4f30'],
dtype='|S7')
dtype='<U7')
self.assertEqual(plot.handles['source'].data['fill_color'], fill_color)
self.assertEqual(plot.handles['source'].data['line_color'], line_color)

Expand All @@ -360,7 +360,7 @@ def test_batched_points_alpha_and_color(self):
plot = bokeh_renderer.get_plot(overlay).subplots[()]
alpha = np.array([0.5, 0.5, 1., 1.])
color = np.array(['#30a2da', '#30a2da', '#fc4f30', '#fc4f30'],
dtype='|S7')
dtype='<U7')
self.assertEqual(plot.handles['source'].data['alpha'], alpha)
self.assertEqual(plot.handles['source'].data['color'], color)

Expand All @@ -372,7 +372,7 @@ def test_batched_points_line_width_and_color(self):
plot = bokeh_renderer.get_plot(overlay).subplots[()]
line_width = np.array([0.5, 0.5, 1., 1.])
color = np.array(['#30a2da', '#30a2da', '#fc4f30', '#fc4f30'],
dtype='|S7')
dtype='<U7')
self.assertEqual(plot.handles['source'].data['line_width'], line_width)
self.assertEqual(plot.handles['source'].data['color'], color)

Expand Down

0 comments on commit 660a168

Please sign in to comment.