File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Original file line number Diff line number Diff line change @@ -1449,10 +1449,12 @@ def _check_xyz(self, args, kwargs):
1449
1449
elif x .ndim == 2 :
1450
1450
1451
1451
if x .shape != z .shape :
1452
- raise TypeError ("Shape of x does not match that of z: found {0} instead of {1}." .format (x .shape , z .shape ))
1452
+ raise TypeError ("Shape of x does not match that of z: found "
1453
+ "{0} instead of {1}." .format (x .shape , z .shape ))
1453
1454
1454
1455
if y .shape != z .shape :
1455
- raise TypeError ("Shape of y does not match that of z: found {0} instead of {1}." .format (y .shape , z .shape ))
1456
+ raise TypeError ("Shape of y does not match that of z: found "
1457
+ "{0} instead of {1}." .format (y .shape , z .shape ))
1456
1458
1457
1459
else :
1458
1460
Original file line number Diff line number Diff line change @@ -97,12 +97,14 @@ def test_contour_shape_mismatch_4():
97
97
ax .contour (b , g , z )
98
98
except TypeError as exc :
99
99
print exc .args [0 ]
100
- assert exc .args [0 ] == 'Shape of x does not match that of z: found (9, 9) instead of (9, 10).'
100
+ assert exc .args [0 ] == 'Shape of x does not match that of z: ' + \
101
+ 'found (9, 9) instead of (9, 10).'
101
102
102
103
try :
103
104
ax .contour (g , b , z )
104
105
except TypeError as exc :
105
- assert exc .args [0 ] == 'Shape of y does not match that of z: found (9, 9) instead of (9, 10).'
106
+ assert exc .args [0 ] == 'Shape of y does not match that of z: ' + \
107
+ 'found (9, 9) instead of (9, 10).'
106
108
107
109
108
110
@cleanup
You can’t perform that action at this time.
0 commit comments