mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175)
This commit is contained in:
parent
4db62e1158
commit
842acaab13
15 changed files with 81 additions and 4 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue