Skip to content

Commit cd00289

Browse files
There is no assertStartsWith in 3.13.
1 parent d57b4a7 commit cd00289

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_tkinter/test_widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ def test_postscript(self):
13611361
c.create_rectangle(10, 10, 30, 30, fill='black')
13621362
ps = c.postscript()
13631363
self.assertIsInstance(ps, str)
1364-
self.assertStartsWith(ps, '%!PS-Adobe')
1364+
self.assertTrue(ps.startswith('%!PS-Adobe'), ps[:20])
13651365
self.assertRaises(TclError, c.postscript, badoption='spam')
13661366

13671367
def assertCommandExist(self, widget, funcid):

0 commit comments

Comments
 (0)