summaryrefslogtreecommitdiffstats
path: root/Lib/sqlite3/test/regression.py
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2018-12-20 17:38:52 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-12-20 17:38:52 (GMT)
commitf347c6eb75ca46990cd7ad3efbe02002603d8460 (patch)
tree744adc5ac41e122e2084d8214cafb4fbc22be2b3 /Lib/sqlite3/test/regression.py
parent3752bc96c0ea1ecf28903cc34cdcd75c658e92ce (diff)
downloadcpython-f347c6eb75ca46990cd7ad3efbe02002603d8460.zip
cpython-f347c6eb75ca46990cd7ad3efbe02002603d8460.tar.gz
cpython-f347c6eb75ca46990cd7ad3efbe02002603d8460.tar.bz2
bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175) (GH-11249)
(cherry picked from commit 842acaab1376c5c84fd5966bb6070e289880e1ca)
Diffstat (limited to 'Lib/sqlite3/test/regression.py')
-rw-r--r--Lib/sqlite3/test/regression.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/sqlite3/test/regression.py b/Lib/sqlite3/test/regression.py
index 271afb0..42fc7c2 100644
--- a/Lib/sqlite3/test/regression.py
+++ b/Lib/sqlite3/test/regression.py
@@ -361,6 +361,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:
def __hash__(self):