summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_channelfile.py2
-rw-r--r--tests/test_client.py2
-rw-r--r--tests/test_config.py2
-rw-r--r--tests/test_kex.py2
-rw-r--r--tests/test_pkey.py2
-rw-r--r--tests/test_proxy.py2
-rw-r--r--tests/test_transport.py2
7 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_channelfile.py b/tests/test_channelfile.py
index 4448fdfb..65929416 100644
--- a/tests/test_channelfile.py
+++ b/tests/test_channelfile.py
@@ -1,4 +1,4 @@
-from mock import patch, MagicMock
+from unittest.mock import patch, MagicMock
from paramiko import Channel, ChannelFile, ChannelStderrFile, ChannelStdinFile
diff --git a/tests/test_client.py b/tests/test_client.py
index 3eaad4fb..a0dcab1a 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -35,7 +35,7 @@ from tempfile import mkstemp
import pytest
from pytest_relaxed import raises
-from mock import patch, Mock
+from unittest.mock import patch, Mock
import paramiko
from paramiko import SSHClient
diff --git a/tests/test_config.py b/tests/test_config.py
index 9b86108d..67a03e63 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -9,7 +9,7 @@ try:
except ImportError:
Result = None
-from mock import patch
+from unittest.mock import patch
from pytest import raises, mark, fixture
from paramiko import (
diff --git a/tests/test_kex.py b/tests/test_kex.py
index b6463558..24fb8b81 100644
--- a/tests/test_kex.py
+++ b/tests/test_kex.py
@@ -24,7 +24,7 @@ from binascii import hexlify, unhexlify
import os
import unittest
-from mock import Mock, patch
+from unittest.mock import Mock, patch
import pytest
from cryptography.hazmat.backends import default_backend
diff --git a/tests/test_pkey.py b/tests/test_pkey.py
index 166cbe32..e2d0a1af 100644
--- a/tests/test_pkey.py
+++ b/tests/test_pkey.py
@@ -42,7 +42,7 @@ from paramiko.common import o600, byte_chr
from cryptography.exceptions import UnsupportedAlgorithm
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateNumbers
-from mock import patch, Mock
+from unittest.mock import patch, Mock
import pytest
from .util import _support, is_low_entropy, requires_sha1_signing
diff --git a/tests/test_proxy.py b/tests/test_proxy.py
index 2e0b0e51..d50cc562 100644
--- a/tests/test_proxy.py
+++ b/tests/test_proxy.py
@@ -1,7 +1,7 @@
import signal
import socket
-from mock import patch
+from unittest.mock import patch
from pytest import raises
from paramiko import ProxyCommand, ProxyCommandFailure
diff --git a/tests/test_transport.py b/tests/test_transport.py
index b5a25cd5..177e83da 100644
--- a/tests/test_transport.py
+++ b/tests/test_transport.py
@@ -30,7 +30,7 @@ import time
import threading
import random
import unittest
-from mock import Mock
+from unittest.mock import Mock
from paramiko import (
AuthHandler,