From 7a45763ef91e6aedd9903fd736cc4490622fe333 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 19:47:36 +0200 Subject: Adding debian version 3.4.0-1. Signed-off-by: Daniel Baumann --- debian/patches/remove_pytest_relaxed.patch | 63 ++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 debian/patches/remove_pytest_relaxed.patch (limited to 'debian/patches/remove_pytest_relaxed.patch') diff --git a/debian/patches/remove_pytest_relaxed.patch b/debian/patches/remove_pytest_relaxed.patch new file mode 100644 index 0000000..70a8e0a --- /dev/null +++ b/debian/patches/remove_pytest_relaxed.patch @@ -0,0 +1,63 @@ +From: Debian Python Modules Team + +Date: Wed, 2 Sep 2020 10:30:06 +0200 +Subject: remove_pytest_relaxed + +--- + setup.cfg | 1 - + tests/test_client.py | 23 ++++++++++++----------- + 2 files changed, 12 insertions(+), 12 deletions(-) + +Index: paramiko/tests/test_client.py +=================================================================== +--- paramiko.orig/tests/test_client.py ++++ paramiko/tests/test_client.py +@@ -33,7 +33,7 @@ import weakref + from tempfile import mkstemp + + import pytest +-from pytest_relaxed import raises ++from pytest import raises + from unittest.mock import patch, Mock + + import paramiko +@@ -797,13 +797,13 @@ class PasswordPassphraseTests(ClientTest + # Straightforward / duplicate of earlier basic password test. + self._test_connection(password="pygmalion") + +- # TODO: more granular exception pending #387; should be signaling "no auth +- # methods available" because no key and no password +- @raises(SSHException) + @requires_sha1_signing + def test_passphrase_kwarg_not_used_for_password_auth(self): + # Using the "right" password in the "wrong" field shouldn't work. +- self._test_connection(passphrase="pygmalion") ++ # TODO: more granular exception pending #387; should be signaling "no auth ++ # methods available" because no key and no password ++ with raises(SSHException): ++ self._test_connection(passphrase='pygmalion') + + @requires_sha1_signing + def test_passphrase_kwarg_used_for_key_passphrase(self): +@@ -823,15 +823,15 @@ class PasswordPassphraseTests(ClientTest + password="television", + ) + +- @raises(AuthenticationException) # TODO: more granular + @requires_sha1_signing + def test_password_kwarg_not_used_for_passphrase_when_passphrase_kwarg_given( # noqa + self, + ): + # Sanity: if we're given both fields, the password field is NOT used as + # a passphrase. +- self._test_connection( +- key_filename=_support("test_rsa_password.key"), +- password="television", +- passphrase="wat? lol no", +- ) ++ with raises(AuthenticationException): # TODO: more granular ++ self._test_connection( ++ key_filename=_support("test_rsa_password.key"), ++ password="television", ++ passphrase="wat? lol no", ++ ) -- cgit v1.2.3