mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +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
|
@ -379,6 +379,10 @@ class RegressionTests(unittest.TestCase):
|
|||
del ref
|
||||
support.gc_collect()
|
||||
|
||||
def CheckDelIsolation_levelSegfault(self):
|
||||
with self.assertRaises(AttributeError):
|
||||
del self.con.isolation_level
|
||||
|
||||
|
||||
class UnhashableFunc:
|
||||
__hash__ = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue