summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Howarth <paul@city-fan.org>2022-05-17 17:00:42 +0100
committerJeff Forcier <jeff@bitprophet.org>2022-05-20 18:26:20 -0400
commitdca52aa8a2ddbc32fc874a8d235652c68e1dc3b9 (patch)
treedee87a90b64fe770d2df7925bcba2f520067b759
parent2ea2ed5430b2f5da7b6116ca336ff3c8bc99cc0e (diff)
downloadparamiko-dca52aa8a2ddbc32fc874a8d235652c68e1dc3b9.tar.gz
Mark new tests that require SHA1
Like https://github.com/paramiko/paramiko/pull/2011
-rw-r--r--tests/test_client.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_client.py b/tests/test_client.py
index 21694e28..d21f0323 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -361,9 +361,11 @@ class SSHClientTest(ClientTest):
== "{}-cert-v01@openssh.com".format(alg)
)
+ @requires_sha1_signing
def test_old_openssh_needs_ssh_rsa_for_certs_not_rsa_sha2(self):
self._cert_algo_test(ver="7.7", alg="ssh-rsa")
+ @requires_sha1_signing
def test_newer_openssh_uses_rsa_sha2_for_certs_not_ssh_rsa(self):
# NOTE: 512 happens to be first in our list and is thus chosen
self._cert_algo_test(ver="7.8", alg="rsa-sha2-512")