summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2018-09-17 17:08:56 -0700
committerJeff Forcier <jeff@bitprophet.org>2018-09-17 17:12:43 -0700
commitf09a0d3853ab7848ed8cd16148ce95ff58e09e8a (patch)
tree6a74d2a064766d8b65285f3ab96516b181c00493
parent74aa8f70b48a88a2a243e58293fac74049e542a7 (diff)
downloadparamiko-f09a0d3853ab7848ed8cd16148ce95ff58e09e8a.tar.gz
Throwing a bone to 2.0-2.3 python-2.6 support
-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)