summaryrefslogtreecommitdiff
path: root/Lib/test/multibytecodec_support.py
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2018-12-17 07:52:45 -0700
committerSerhiy Storchaka <storchaka@gmail.com>2018-12-17 16:52:45 +0200
commit842acaab1376c5c84fd5966bb6070e289880e1ca (patch)
treef21283245b7e349d05482b89fde8d570b33c53ab /Lib/test/multibytecodec_support.py
parent4db62e115891425db2a974142a72d8eaaf95eecb (diff)
downloadcpython-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.py5
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 = []