Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09ca6fa

Browse files
committed
codestyle
1 parent 4554737 commit 09ca6fa

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

lib/matplotlib/tests/test_collections.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -706,14 +706,17 @@ def test_quadmesh_set_array_validation():
706706
coll = ax.pcolormesh(x, y, np.ones(z.shape))
707707
z = np.arange(16).reshape((4, 4))
708708

709-
with pytest.raises(ValueError, match="Dimensions of A (4, 4) are incompatible with X (3) and/or Y (3)"):
709+
with pytest.raises(ValueError, match="Dimensions of A (4, 4) "
710+
"are incompatible with X (3) and/or Y (3)"):
710711
coll.set_array(z)
711-
with pytest.raises(ValueError, match="Dimensions of A (16,) are incompatible with X (3) and/or Y (3)"):
712+
with pytest.raises(ValueError, match="Dimensions of A (16,) "
713+
"are incompatible with X (3) and/or Y (3)"):
712714
coll.set_array(z.ravel())
713-
715+
714716
fig, ax = plt.subplots()
715717
coll = ax.pcolormesh(x, y, np.ones(z.shape), shading='nearest')
716-
with pytest.raises(ValueError, match="Dimensions of A (3, 3) are incompatible with X (4) and/or Y (4)"):
718+
with pytest.raises(ValueError, match="Dimensions of A (3, 3) "
719+
"are incompatible with X (4) and/or Y (4)"):
717720
z = np.arange(9).reshape((3, 3))
718721
coll.set_array(z)
719722

@@ -723,7 +726,8 @@ def test_quadmesh_set_array_validation():
723726
fig, ax = plt.subplots()
724727
coll = ax.pcolormesh(x, y, np.ones(z.shape), shading='gouraud')
725728
z = np.arange(16).reshape((4, 4))
726-
with pytest.raises(ValueError, match="Dimensions of A (4, 4) are incompatible with X (2) and/or Y (2)"):
729+
with pytest.raises(ValueError, match="Dimensions of A (4, 4) "
730+
"are incompatible with X (2) and/or Y (2)"):
727731
coll.set_array(z)
728732

729733

0 commit comments

Comments
 (0)