Skip to content

Commit 553ecc0

Browse files
DimitriPapadopoulosastanin
authored andcommitted
Prefer f-strings
1 parent 4c9a049 commit 553ecc0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/test_textwrapper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_wrap_multiword_non_wide():
1717

1818
assert [line.rstrip() for line in orig.wrap(data)] == [
1919
line.rstrip() for line in cust.wrap(data)
20-
], "Failure on non-wide char multiword regression check for width " + str(width)
20+
], f"Failure on non-wide char multiword regression check for width {width}"
2121

2222

2323
def test_wrap_multiword_non_wide_with_hypens():
@@ -29,7 +29,7 @@ def test_wrap_multiword_non_wide_with_hypens():
2929

3030
assert [line.rstrip() for line in orig.wrap(data)] == [
3131
line.rstrip() for line in cust.wrap(data)
32-
], "Failure on non-wide char hyphen regression check for width " + str(width)
32+
], f"Failure on non-wide char hyphen regression check for width {width}"
3333

3434

3535
def test_wrap_longword_non_wide():
@@ -40,7 +40,7 @@ def test_wrap_longword_non_wide():
4040
cust = CTW(width=width)
4141

4242
assert orig.wrap(data) == cust.wrap(data), (
43-
"Failure on non-wide char longword regression check for width " + str(width)
43+
f"Failure on non-wide char longword regression check for width {width}"
4444
)
4545

4646

0 commit comments

Comments
 (0)