diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-07-16 20:21:11 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-07-16 20:21:11 (GMT) |
commit | 71f89216c4717bcb88607aa4ff18fbbc9e4044e7 (patch) | |
tree | 47fed6bd44b0f9029ee7e07338c3e08527e8cb90 /Lib | |
parent | 061091a7c505403fbb95e8f8e16e1b7b6ed5dd1b (diff) | |
parent | 8cc80f1d8199a29a432c8caeb3142f9aa35012fd (diff) | |
download | cpython-71f89216c4717bcb88607aa4ff18fbbc9e4044e7.zip cpython-71f89216c4717bcb88607aa4ff18fbbc9e4044e7.tar.gz cpython-71f89216c4717bcb88607aa4ff18fbbc9e4044e7.tar.bz2 |
Merge 3.5
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/multibytecodec_support.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/multibytecodec_support.py b/Lib/test/multibytecodec_support.py index bc1cfc8..f9884c6 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 = [] |