summaryrefslogtreecommitdiff
path: root/numpy/testing/_private/parameterized.py
diff options
context:
space:
mode:
authorJakob <jakobjakobson13@posteo.de>2020-10-23 21:33:30 +0200
committerJakob <jakobjakobson13@posteo.de>2020-10-23 21:33:30 +0200
commit1c2b8da1bbc8458b1d878ae10d957bd6b7546131 (patch)
treec03d90d0a5d770005237dd2ee5a962dc78754caf /numpy/testing/_private/parameterized.py
parent54d8c9f50228da85f79755e2891a368e572425ad (diff)
downloadnumpy-1c2b8da1bbc8458b1d878ae10d957bd6b7546131.tar.gz
mostly string conversions
Diffstat (limited to 'numpy/testing/_private/parameterized.py')
-rw-r--r--numpy/testing/_private/parameterized.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/testing/_private/parameterized.py b/numpy/testing/_private/parameterized.py
index 3bd8ede91..ac7db6c40 100644
--- a/numpy/testing/_private/parameterized.py
+++ b/numpy/testing/_private/parameterized.py
@@ -205,7 +205,7 @@ def default_doc_func(func, num, p):
all_args_with_values = parameterized_argument_value_pairs(func, p)
# Assumes that the function passed is a bound method.
- descs = ["%s=%s" %(n, short_repr(v)) for n, v in all_args_with_values]
+ descs = [f'{n}={short_repr(v)}' for n, v in all_args_with_values]
# The documentation might be a multiline string, so split it
# and just work with the first string, ignoring the period