Skip to content

Commit 2f08005

Browse files
MAINT: %i%d (numpy#28712)
1 parent c6fb335 commit 2f08005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/_core/tests/test_deprecations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def assert_deprecated(self, function, num=1, ignore_others=False,
103103
"expected %s but got: %s" %
104104
(self.warning_cls.__name__, warning.category))
105105
if num is not None and num_found != num:
106-
msg = "%i warnings found but %i expected." % (len(self.log), num)
106+
msg = f"{len(self.log)} warnings found but {num} expected."
107107
lst = [str(w) for w in self.log]
108108
raise AssertionError("\n".join([msg] + lst))
109109

0 commit comments

Comments
 (0)