summaryrefslogtreecommitdiffhomepage
path: root/tests/test_transport.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2006-11-20 11:21:37 -0800
committerRobey Pointer <robey@lag.net>2006-11-20 11:21:37 -0800
commit48bb10694b67a66f2c524dcca8a867319e60b87c (patch)
treeeb0331ece837e585e9c17e45f73beab5155f7152 /tests/test_transport.py
parentb956cc48317dcc2440a64a9295b8fdd6cc021fe3 (diff)
[project @ robey@lag.net-20061120192137-1rcpiiq9mcd58m76]
reorder the closing of the pipe in Channel.close() to make sure it happens even when the channel is closed by the remote host first
Diffstat (limited to 'tests/test_transport.py')
-rw-r--r--tests/test_transport.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_transport.py b/tests/test_transport.py
index 60ac1e7d..e3763eea 100644
--- a/tests/test_transport.py
+++ b/tests/test_transport.py
@@ -538,7 +538,12 @@ class TransportTest (unittest.TestCase):
self.assertEquals([], e)
self.assertEquals('', chan.recv(16))
+ # make sure the pipe is still open for now...
+ p = chan._pipe
+ self.assertEquals(False, p._closed)
chan.close()
+ # ...and now is closed.
+ self.assertEquals(True, p._closed)
def test_G_renegotiate(self):
"""