Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b50899

Browse files
committed
Remove empty setUp and tearDown methods from sqlite3 tests
They are not used as base classes by another tests so they can safely be removed.
1 parent 48b13f0 commit 2b50899

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

Lib/sqlite3/test/dbapi.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -695,12 +695,6 @@ def CheckConnectionExecutescript(self):
695695
self.assertEqual(result, 5, "Basic test of Connection.executescript")
696696

697697
class ClosedConTests(unittest.TestCase):
698-
def setUp(self):
699-
pass
700-
701-
def tearDown(self):
702-
pass
703-
704698
def CheckClosedConCursor(self):
705699
con = sqlite.connect(":memory:")
706700
con.close()
@@ -768,12 +762,6 @@ def CheckClosedCall(self):
768762
con()
769763

770764
class ClosedCurTests(unittest.TestCase):
771-
def setUp(self):
772-
pass
773-
774-
def tearDown(self):
775-
pass
776-
777765
def CheckClosed(self):
778766
con = sqlite.connect(":memory:")
779767
cur = con.cursor()

Lib/sqlite3/test/hooks.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@
2525
import sqlite3 as sqlite
2626

2727
class CollationTests(unittest.TestCase):
28-
def setUp(self):
29-
pass
30-
31-
def tearDown(self):
32-
pass
33-
3428
def CheckCreateCollationNotCallable(self):
3529
con = sqlite.connect(":memory:")
3630
with self.assertRaises(TypeError) as cm:

0 commit comments

Comments
 (0)