summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-07-16 22:20:19 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-07-16 22:20:19 +0200
commit8cc80f1d8199a29a432c8caeb3142f9aa35012fd (patch)
tree7909c2e728f6cb5edd9b6e971f21df5946981288 /Lib
parenta3626bc5bddf9bf43f33060f4ea1a99f25e0c7f1 (diff)
parent579db160b392404b6dd9608ce5f5bef29a9885a4 (diff)
downloadcpython-git-8cc80f1d8199a29a432c8caeb3142f9aa35012fd.tar.gz
Merge 3.4
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/multibytecodec_support.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/multibytecodec_support.py b/Lib/test/multibytecodec_support.py
index bc1cfc8518..f9884c68eb 100644
--- a/Lib/test/multibytecodec_support.py
+++ b/Lib/test/multibytecodec_support.py
@@ -270,6 +270,13 @@ class TestBase:
self.assertEqual(ostream.getvalue(), self.tstring[0])
+ def test_streamwriter_reset_no_pending(self):
+ # Issue #23247: Calling reset() on a fresh StreamWriter instance
+ # (without pending data) must not crash
+ stream = BytesIO()
+ writer = self.writer(stream)
+ writer.reset()
+
class TestBase_Mapping(unittest.TestCase):
pass_enctest = []