File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 2
2
unicode_literals )
3
3
4
4
import numpy as np
5
- from nose .tools import assert_true
5
+ from nose .tools import assert_true , assert_less
6
6
from matplotlib .externals import six
7
7
8
8
import matplotlib
@@ -71,13 +71,11 @@ def test_label_without_ticks():
71
71
spine = ax .spines ['left' ]
72
72
spinebbox = spine .get_transform ().transform_path (
73
73
spine .get_path ()).get_extents ()
74
- # replace with assert_less if >python2.6
75
- assert_true (ax .yaxis .label .get_position ()[0 ] < spinebbox .xmin ,
74
+ assert_less (ax .yaxis .label .get_position ()[0 ], spinebbox .xmin ,
76
75
"Y-Axis label not left of the spine" )
77
76
78
77
spine = ax .spines ['bottom' ]
79
78
spinebbox = spine .get_transform ().transform_path (
80
79
spine .get_path ()).get_extents ()
81
- # replace with assert_less if >python2.6
82
- assert_true (ax .xaxis .label .get_position ()[1 ] < spinebbox .ymin ,
80
+ assert_less (ax .xaxis .label .get_position ()[1 ], spinebbox .ymin ,
83
81
"X-Axis label not below the spine" )
You can’t perform that action at this time.
0 commit comments