Patch from jbalogh fixes issue #2282 (misnamed seekable() method).
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 @@
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")()