summaryrefslogtreecommitdiff
path: root/tests/test_func.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-21 13:27:11 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-21 15:36:16 +0100
commit5bed07eba999130b6551acc7c43192d6a8eada43 (patch)
tree09e3a11503bd074363556e8a5fd33fc0e8db7fc4 /tests/test_func.py
parenta1e553d3bb07c56ca99c31279f9af104bede0a32 (diff)
downloadpylint-git-5bed07eba999130b6551acc7c43192d6a8eada43.tar.gz
Move from % string formatting syntax to f-string or .format()
Diffstat (limited to 'tests/test_func.py')
-rw-r--r--tests/test_func.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_func.py b/tests/test_func.py
index e10aa4fa7..4670274c6 100644
--- a/tests/test_func.py
+++ b/tests/test_func.py
@@ -38,7 +38,7 @@ INFO_TEST_RGX = re.compile(r"^func_i\d\d\d\d$")
def exception_str(self, ex): # pylint: disable=unused-argument
"""function used to replace default __str__ method of exception instances"""
- return "in %s\n:: %s" % (ex.file, ", ".join(ex.args))
+ return "in {}\n:: {}".format(ex.file, ", ".join(ex.args))
class LintTestUsingModule: