Skip to content

Commit

Permalink
Fix test with wrong indexing
Browse files Browse the repository at this point in the history
It was a bad test to begin with. An upstream change in Matplotlib
made it fail.
  • Loading branch information
has2k1 committed Jan 27, 2017
1 parent 0bb2ce1 commit c46d1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mizani/tests/test_palettes.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_gradient_n_pal():
result = palette([0, .25, .5, .75, 1])
assert result[0].lower() == '#ff0000'
assert result[-1].lower() == '#0000ff'
assert palette(0).lower() == '#ff0000'
assert palette([0])[0].lower() == '#ff0000'

# symmetric gradient
palette = gradient_n_pal(['red', 'blue', 'red'], [0, 0.5, 1])
Expand Down

0 comments on commit c46d1a3

Please sign in to comment.