rdobuilder 23dcc2
From eaaaf25063a212ffb895a83af97ca114a643c070 Mon Sep 17 00:00:00 2001
rdobuilder 23dcc2
From: Paul Howarth <paul@city-fan.org>
rdobuilder 23dcc2
Date: Tue, 17 May 2022 17:00:42 +0100
rdobuilder 23dcc2
Subject: [PATCH] Mark new tests that require SHA1
rdobuilder 23dcc2
rdobuilder 23dcc2
Like https://github.com/paramiko/paramiko/pull/2011
rdobuilder 23dcc2
---
rdobuilder 23dcc2
 tests/test_client.py | 2 ++
rdobuilder 23dcc2
 1 file changed, 2 insertions(+)
rdobuilder 23dcc2
rdobuilder 23dcc2
diff --git a/tests/test_client.py b/tests/test_client.py
rdobuilder 23dcc2
index fdf19c45..3db4cd22 100644
rdobuilder 23dcc2
--- a/tests/test_client.py
rdobuilder 23dcc2
+++ b/tests/test_client.py
rdobuilder 23dcc2
@@ -370,9 +370,11 @@ class SSHClientTest(ClientTest):
rdobuilder 23dcc2
             == "{}-cert-v01@openssh.com".format(alg)
rdobuilder 23dcc2
         )
rdobuilder 23dcc2
 
rdobuilder 23dcc2
+    @requires_sha1_signing
rdobuilder 23dcc2
     def test_old_openssh_needs_ssh_rsa_for_certs_not_rsa_sha2(self):
rdobuilder 23dcc2
         self._cert_algo_test(ver="7.7", alg="ssh-rsa")
rdobuilder 23dcc2
 
rdobuilder 23dcc2
+    @requires_sha1_signing
rdobuilder 23dcc2
     def test_newer_openssh_uses_rsa_sha2_for_certs_not_ssh_rsa(self):
rdobuilder 23dcc2
         # NOTE: 512 happens to be first in our list and is thus chosen
rdobuilder 23dcc2
         self._cert_algo_test(ver="7.8", alg="rsa-sha2-512")
rdobuilder 23dcc2
-- 
rdobuilder 23dcc2
2.35.3
rdobuilder 23dcc2