Skip to content

Commit

Permalink
Remove missing assert_less workaround from spines test
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Oct 31, 2015
1 parent 8a0af1e commit 45f5f30
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/matplotlib/tests/test_spines.py
Expand Up @@ -2,7 +2,7 @@
unicode_literals)

import numpy as np
from nose.tools import assert_true
from nose.tools import assert_true, assert_less
from matplotlib.externals import six

import matplotlib
Expand Down Expand Up @@ -71,13 +71,11 @@ def test_label_without_ticks():
spine = ax.spines['left']
spinebbox = spine.get_transform().transform_path(
spine.get_path()).get_extents()
# replace with assert_less if >python2.6
assert_true(ax.yaxis.label.get_position()[0] < spinebbox.xmin,
assert_less(ax.yaxis.label.get_position()[0], spinebbox.xmin,
"Y-Axis label not left of the spine")

spine = ax.spines['bottom']
spinebbox = spine.get_transform().transform_path(
spine.get_path()).get_extents()
# replace with assert_less if >python2.6
assert_true(ax.xaxis.label.get_position()[1] < spinebbox.ymin,
assert_less(ax.xaxis.label.get_position()[1], spinebbox.ymin,
"X-Axis label not below the spine")

0 comments on commit 45f5f30

Please sign in to comment.