diff options
author | Zackery Spytz <zspytz@gmail.com> | 2018-12-17 07:52:45 -0700 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-12-17 16:52:45 +0200 |
commit | 842acaab1376c5c84fd5966bb6070e289880e1ca (patch) | |
tree | f21283245b7e349d05482b89fde8d570b33c53ab /Lib/test/multibytecodec_support.py | |
parent | 4db62e115891425db2a974142a72d8eaaf95eecb (diff) | |
download | cpython-git-842acaab1376c5c84fd5966bb6070e289880e1ca.tar.gz |
bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175)
Diffstat (limited to 'Lib/test/multibytecodec_support.py')
-rw-r--r-- | Lib/test/multibytecodec_support.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/multibytecodec_support.py b/Lib/test/multibytecodec_support.py index 813b7aa1bd..cca8af67d6 100644 --- a/Lib/test/multibytecodec_support.py +++ b/Lib/test/multibytecodec_support.py @@ -277,6 +277,11 @@ class TestBase: writer = self.writer(stream) writer.reset() + def test_incrementalencoder_del_segfault(self): + e = self.incrementalencoder() + with self.assertRaises(AttributeError): + del e.errors + class TestBase_Mapping(unittest.TestCase): pass_enctest = [] |