summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-08-25 22:08:26 -0700
committerJeff Forcier <jeff@bitprophet.org>2014-08-25 22:08:26 -0700
commitce1ec358abbd1726f39df9b19d6e4e681819abb9 (patch)
treec424bdf57935a896caf72f1fe029f39483e8d926 /tests
parent951faed80b017e553a27c4cb98f210df44341f8f (diff)
parentd05ca17db876055a5f584e720b1b0733116b4365 (diff)
Merge branch '1.13' into 1.14
Conflicts: sites/www/changelog.rst
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_file.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_file.py b/tests/test_file.py
index c6edd7af..22a34aca 100755
--- a/tests/test_file.py
+++ b/tests/test_file.py
@@ -23,6 +23,7 @@ Some unit tests for the BufferedFile abstraction.
import unittest
from paramiko.file import BufferedFile
from paramiko.common import linefeed_byte, crlf, cr_byte
+import sys
class LoopbackFile (BufferedFile):
@@ -151,6 +152,15 @@ class BufferedFileTest (unittest.TestCase):
b'need to close them again.\n')
f.close()
+ def test_8_buffering(self):
+ """
+ verify that buffered objects can be written
+ """
+ if sys.version_info[0] == 2:
+ f = LoopbackFile('r+', 16)
+ f.write(buffer(b'Too small.'))
+ f.close()
+
if __name__ == '__main__':
from unittest import main
main()