Skip to content

Commit 0b69731

Browse files
committed
TST: fix CL tests
1 parent 0e47dab commit 0b69731

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/matplotlib/tests/test_constrainedlayout.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,15 +349,16 @@ def test_constrained_layout20():
349349
mesh = ax.pcolormesh(gx, gx, img)
350350
fig.colorbar(mesh)
351351

352+
352353
def test_constrained_layout21():
353354
'#11035: repeated calls to suptitle should not alter the layout'
354355
fig, ax = plt.subplots(constrained_layout=True)
355356

356-
fig.suptitle(f"Suptitle #0")
357+
fig.suptitle("Suptitle0")
357358
fig.canvas.draw()
358359
extents0 = np.copy(ax.get_position().extents)
359360

360-
fig.suptitle(f"Suptitle #1")
361+
fig.suptitle("Suptitle1")
361362
fig.canvas.draw()
362363
extents1 = np.copy(ax.get_position().extents)
363364

@@ -371,7 +372,7 @@ def test_constrained_layout22():
371372
fig.canvas.draw()
372373
extents0 = np.copy(ax.get_position().extents)
373374

374-
fig.suptitle(f"Suptitle", y=0.5)
375+
fig.suptitle("Suptitle", y=0.5)
375376
fig.canvas.draw()
376377
extents1 = np.copy(ax.get_position().extents)
377378

@@ -386,4 +387,4 @@ def test_constrained_layout23():
386387

387388
for i in range(2):
388389
fig, ax = plt.subplots(num="123", constrained_layout=True, clear=True)
389-
fig.suptitle(f"Suptitle {i}".format(i))
390+
fig.suptitle("Suptitle{}".format(i))

0 commit comments

Comments
 (0)