summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-06-14 21:20:18 -0400
committerJeff Forcier <jeff@bitprophet.org>2019-06-14 21:20:18 -0400
commita735de4aa7646657c42c82dc3a69786bafade812 (patch)
tree8bab278a10a3da6f7c088e1e4ad831784bf846af /tests
parente1fc86ac4f709a6128a83aebd31bc5c283a82fec (diff)
parent8efb5a105d8b4ea93f92c0ed4a291e3f733fe4f5 (diff)
Merge branch '2.4' into 2.5
Diffstat (limited to 'tests')
-rw-r--r--tests/test_channelfile.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_channelfile.py b/tests/test_channelfile.py
index 6faf8bf8..ffcbea3f 100644
--- a/tests/test_channelfile.py
+++ b/tests/test_channelfile.py
@@ -6,12 +6,12 @@ from paramiko import Channel, ChannelFile, ChannelStderrFile
class TestChannelFile(object):
@patch("paramiko.channel.ChannelFile._set_mode")
def test_defaults_to_unbuffered_reading(self, setmode):
- cf = ChannelFile(Channel(None))
+ ChannelFile(Channel(None))
setmode.assert_called_once_with("r", -1)
@patch("paramiko.channel.ChannelFile._set_mode")
def test_can_override_mode_and_bufsize(self, setmode):
- cf = ChannelFile(Channel(None), mode="w", bufsize=25)
+ ChannelFile(Channel(None), mode="w", bufsize=25)
setmode.assert_called_once_with("w", 25)
def test_read_recvs_from_channel(self):
@@ -39,4 +39,3 @@ class TestChannelStderrFile(object):
cf = ChannelStderrFile(chan, mode="w")
cf.write("ohai")
chan.sendall_stderr.assert_called_once_with(b"ohai")
-