summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2023-01-09 20:59:37 -0500
committerJeff Forcier <jeff@bitprophet.org>2023-01-09 23:26:00 -0500
commit814b6bc7a7786c7ae5e6a0f48b9ae76d209aaade (patch)
treed0ed42ca5ca111a90206e1cf59cc7bfae5a5e40b /tests
parent3e87f05b57213cc539670f85ac7ea8ccddb9e5c4 (diff)
downloadparamiko-814b6bc7a7786c7ae5e6a0f48b9ae76d209aaade.tar.gz
Update StringIO
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pkey.py3
-rw-r--r--tests/test_sftp.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_pkey.py b/tests/test_pkey.py
index bc1503ab..45d1ee96 100644
--- a/tests/test_pkey.py
+++ b/tests/test_pkey.py
@@ -26,6 +26,7 @@ import os
import stat
from binascii import hexlify
from hashlib import md5
+from io import StringIO
from paramiko import (
RSAKey,
@@ -36,7 +37,7 @@ from paramiko import (
util,
SSHException,
)
-from paramiko.py3compat import StringIO, b, bytes, PY2
+from paramiko.py3compat import b, bytes, PY2
from paramiko.common import o600, byte_chr
from cryptography.exceptions import UnsupportedAlgorithm
diff --git a/tests/test_sftp.py b/tests/test_sftp.py
index b53ece7d..98292d26 100644
--- a/tests/test_sftp.py
+++ b/tests/test_sftp.py
@@ -28,11 +28,11 @@ import socket
import sys
import warnings
from binascii import hexlify
+from io import StringIO
from tempfile import mkstemp
import pytest
-from paramiko.py3compat import PY2, b, u, StringIO
from paramiko.common import o777, o600, o666, o644
from tests import requireNonAsciiLocale
from paramiko.sftp_attr import SFTPAttributes