Skip to content

Commit 166a324

Browse files
committed
manual fixes
1 parent f8274a7 commit 166a324

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/aws/test_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def check_events():
478478

479479
for i, event in enumerate(inserts):
480480
assert "old_image" not in event
481-
item_id = "testId%d" % i
481+
item_id = f"testId{i:d}"
482482
matching = [i for i in inserts if i["new_image"]["id"] == item_id][0]
483483
assert matching["new_image"] == {"id": item_id, "data": "foobar123"}
484484

@@ -526,7 +526,7 @@ def found(update):
526526

527527
for i, event in enumerate(removes):
528528
assert "new_image" not in event
529-
item_id = "testId%d" % i
529+
item_id = f"testId{i:d}"
530530
matching = [i for i in removes if i["old_image"]["id"] == item_id][0]
531531
assert matching["old_image"] == {"id": item_id, "data": "foobar123"}
532532

tests/unit/test_common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def test_retry(self):
190190

191191
def fn():
192192
i = next(count)
193-
e = RuntimeError("exception %d" % i)
193+
e = RuntimeError(f"exception {i:d}")
194194
exceptions.append(e)
195195

196196
if i == 2:
@@ -208,7 +208,7 @@ def test_retry_raises_last_exception(self):
208208

209209
def fn():
210210
i = next(count)
211-
e = RuntimeError("exception %d" % i)
211+
e = RuntimeError(f"exception {i:d}")
212212
exceptions.append(e)
213213

214214
raise e

0 commit comments

Comments
 (0)