File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ def check_events():
478
478
479
479
for i , event in enumerate (inserts ):
480
480
assert "old_image" not in event
481
- item_id = "testId%d" % i
481
+ item_id = f "testId{ i :d } "
482
482
matching = [i for i in inserts if i ["new_image" ]["id" ] == item_id ][0 ]
483
483
assert matching ["new_image" ] == {"id" : item_id , "data" : "foobar123" }
484
484
@@ -526,7 +526,7 @@ def found(update):
526
526
527
527
for i , event in enumerate (removes ):
528
528
assert "new_image" not in event
529
- item_id = "testId%d" % i
529
+ item_id = f "testId{ i :d } "
530
530
matching = [i for i in removes if i ["old_image" ]["id" ] == item_id ][0 ]
531
531
assert matching ["old_image" ] == {"id" : item_id , "data" : "foobar123" }
532
532
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ def test_retry(self):
190
190
191
191
def fn ():
192
192
i = next (count )
193
- e = RuntimeError ("exception %d" % i )
193
+ e = RuntimeError (f "exception { i :d } " )
194
194
exceptions .append (e )
195
195
196
196
if i == 2 :
@@ -208,7 +208,7 @@ def test_retry_raises_last_exception(self):
208
208
209
209
def fn ():
210
210
i = next (count )
211
- e = RuntimeError ("exception %d" % i )
211
+ e = RuntimeError (f "exception { i :d } " )
212
212
exceptions .append (e )
213
213
214
214
raise e
You can’t perform that action at this time.
0 commit comments