]> granicus.if.org Git - python/commitdiff
Remove empty setUp and tearDown methods from sqlite3 tests
authorBerker Peksag <berker.peksag@gmail.com>
Tue, 14 Jun 2016 10:25:11 +0000 (13:25 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Tue, 14 Jun 2016 10:25:11 +0000 (13:25 +0300)
They are not used as base classes by another tests so they
can safely be removed.

Lib/sqlite3/test/dbapi.py
Lib/sqlite3/test/hooks.py

index 903e5990316d7a3c1c2dd3e8e72a17a088d0a739..d9c32282a5092d53f47427160468ec90c8121f04 100644 (file)
@@ -695,12 +695,6 @@ class ExtensionTests(unittest.TestCase):
         self.assertEqual(result, 5, "Basic test of Connection.executescript")
 
 class ClosedConTests(unittest.TestCase):
-    def setUp(self):
-        pass
-
-    def tearDown(self):
-        pass
-
     def CheckClosedConCursor(self):
         con = sqlite.connect(":memory:")
         con.close()
@@ -768,12 +762,6 @@ class ClosedConTests(unittest.TestCase):
             con()
 
 class ClosedCurTests(unittest.TestCase):
-    def setUp(self):
-        pass
-
-    def tearDown(self):
-        pass
-
     def CheckClosed(self):
         con = sqlite.connect(":memory:")
         cur = con.cursor()
index de69569d1c0d6cc37198a912882241820cbf3660..cafff932b4da60f0e61e7eb1288a1391ce55480e 100644 (file)
@@ -25,12 +25,6 @@ import unittest
 import sqlite3 as sqlite
 
 class CollationTests(unittest.TestCase):
-    def setUp(self):
-        pass
-
-    def tearDown(self):
-        pass
-
     def CheckCreateCollationNotCallable(self):
         con = sqlite.connect(":memory:")
         with self.assertRaises(TypeError) as cm: