summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
authorKa-Ping Yee <ping@zesty.ca>2008-03-17 20:35:15 (GMT)
committerKa-Ping Yee <ping@zesty.ca>2008-03-17 20:35:15 (GMT)
commitddaa7064ee81c48adc4fdea327892c29179f7845 (patch)
treee51842456cd053a08607b590f7a8303068be56bd /Lib/test/test_io.py
parente84b6336db4a2521de91aa916676bdf494aa8205 (diff)
downloadcpython-ddaa7064ee81c48adc4fdea327892c29179f7845.zip
cpython-ddaa7064ee81c48adc4fdea327892c29179f7845.tar.gz
cpython-ddaa7064ee81c48adc4fdea327892c29179f7845.tar.bz2
Patch from jbalogh fixes issue #2282 (misnamed seekable() method).
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r--Lib/test/test_io.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 4963416..0bc2b48 100644
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -895,6 +895,12 @@ class TextIOWrapperTest(unittest.TestCase):
txt.seek(pos)
self.assertEquals(txt.read(4), "BBB\n")
+ def test_issue2282(self):
+ buffer = io.BytesIO(self.testdata)
+ txt = io.TextIOWrapper(buffer, encoding="ascii")
+
+ self.assertEqual(buffer.seekable(), txt.seekable())
+
def test_newline_decoder(self):
import codecs
decoder = codecs.getincrementaldecoder("utf-8")()