forked from pool/python-paramiko
- drop python-pytest_relaxed dependency - add patches: 1311.patch - fix warnings 1379.patch - fix support for gssapi relaxed.patch - remove unnecessary pytest_relaxed dep - remove patch: disable-gssapi.patch - supersseded OBS-URL: https://build.opensuse.org/request/show/676196 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-paramiko?expand=0&rev=81
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
--- paramiko-2.4.2.orig/tests/test_client.py
|
|
+++ paramiko-2.4.2/tests/test_client.py
|
|
@@ -33,7 +33,7 @@ import warnings
|
|
import weakref
|
|
from tempfile import mkstemp
|
|
|
|
-from pytest_relaxed import raises
|
|
+import pytest
|
|
|
|
import paramiko
|
|
from paramiko.pkey import PublicBlob
|
|
@@ -662,7 +662,7 @@ class PasswordPassphraseTests(ClientTest):
|
|
|
|
# TODO: more granular exception pending #387; should be signaling "no auth
|
|
# methods available" because no key and no password
|
|
- @raises(SSHException)
|
|
+ @pytest.mark.xfail(raises=SSHException)
|
|
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")
|
|
@@ -683,7 +683,7 @@ class PasswordPassphraseTests(ClientTest):
|
|
password="television",
|
|
)
|
|
|
|
- @raises(AuthenticationException) # TODO: more granular
|
|
+ @pytest.mark.xfail(raises=AuthenticationException) # TODO: more granular
|
|
def test_password_kwarg_not_used_for_passphrase_when_passphrase_kwarg_given(
|
|
self
|
|
): # noqa
|