From 207c321f13cea3fee7f378057864e8c6453f5adf Mon Sep 17 00:00:00 2001 From: Erlend Egeberg Aasland Date: Mon, 7 Sep 2020 23:26:54 +0200 Subject: bpo-40744: Drop support for SQLite pre 3.7.3 (GH-20909) Remove code required to support SQLite pre 3.7.3. Co-written-by: Berker Peksag Co-written-by: Sergey Fedoseev --- Lib/sqlite3/test/dbapi.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Lib/sqlite3/test/dbapi.py') diff --git a/Lib/sqlite3/test/dbapi.py b/Lib/sqlite3/test/dbapi.py index 119da121703..a8dfeb9b2d6 100644 --- a/Lib/sqlite3/test/dbapi.py +++ b/Lib/sqlite3/test/dbapi.py @@ -185,12 +185,6 @@ class ConnectionTests(unittest.TestCase): with self.assertRaises(sqlite.OperationalError): cx.execute('insert into test(id) values(1)') - @unittest.skipIf(sqlite.sqlite_version_info >= (3, 3, 1), - 'needs sqlite versions older than 3.3.1') - def CheckSameThreadErrorOnOldVersion(self): - with self.assertRaises(sqlite.NotSupportedError) as cm: - sqlite.connect(':memory:', check_same_thread=False) - self.assertEqual(str(cm.exception), 'shared connections not available') class CursorTests(unittest.TestCase): def setUp(self): -- cgit v1.2.3