Skip to content

Commit b26e978

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/tests/test_constrainedlayout.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,11 @@ def test_constrained_layout21():
353353
'#11035: repeated calls to suptitle should not alter the layout'
354354
fig, ax = plt.subplots(constrained_layout=True)
355355

356-
fig.suptitle(f"Suptitle #0")
356+
fig.suptitle("Suptitle0")
357357
fig.canvas.draw()
358358
extents0 = np.copy(ax.get_position().extents)
359359

360-
fig.suptitle(f"Suptitle #1")
360+
fig.suptitle("Suptitle1")
361361
fig.canvas.draw()
362362
extents1 = np.copy(ax.get_position().extents)
363363

@@ -371,7 +371,7 @@ def test_constrained_layout22():
371371
fig.canvas.draw()
372372
extents0 = np.copy(ax.get_position().extents)
373373

374-
fig.suptitle(f"Suptitle", y=0.5)
374+
fig.suptitle("Suptitle", y=0.5)
375375
fig.canvas.draw()
376376
extents1 = np.copy(ax.get_position().extents)
377377

@@ -386,4 +386,4 @@ def test_constrained_layout23():
386386

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

0 commit comments

Comments
 (0)