summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tests/test_client.py2
-rw-r--r--tests/util.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_client.py b/tests/test_client.py
index ddfb33fc..03b163fc 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -212,7 +212,7 @@ class SSHClientTest(unittest.TestCase):
try:
self._test_connection(
key_filename=[
- _support("test_{}.key".format(x)) for x in attempt
+ _support("test_{0}.key".format(x)) for x in attempt
],
allowed_keys=[types_[x] for x in accept],
)
diff --git a/tests/util.py b/tests/util.py
index 4ca02374..c1ba4b2c 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -20,7 +20,7 @@ def needs_builtin(name):
"""
Skip decorated test if builtin name does not exist.
"""
- reason = "Test requires a builtin '{}'".format(name)
+ reason = "Test requires a builtin '{0}'".format(name)
return pytest.mark.skipif(not hasattr(builtins, name), reason=reason)