[Python-checkins] cpython (3.5): Remove empty setUp and tearDown methods from sqlite3 tests

berker.peksag python-checkins at python.org
Tue Jun 14 06:25:13 EDT 2016


https://hg.python.org/cpython/rev/38c1ccdfd38a
changeset: 102024:38c1ccdfd38a
branch: 3.5
parent: 102022:e02298f48b49
user: Berker Peksag <berker.peksag at gmail.com>
date: Tue Jun 14 13:25:11 2016 +0300
summary:
 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.
files:
 Lib/sqlite3/test/dbapi.py | 12 ------------
 Lib/sqlite3/test/hooks.py | 6 ------
 2 files changed, 0 insertions(+), 18 deletions(-)
diff --git a/Lib/sqlite3/test/dbapi.py b/Lib/sqlite3/test/dbapi.py
--- a/Lib/sqlite3/test/dbapi.py
+++ b/Lib/sqlite3/test/dbapi.py
@@ -695,12 +695,6 @@
 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 @@
 con()
 
 class ClosedCurTests(unittest.TestCase):
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
 def CheckClosed(self):
 con = sqlite.connect(":memory:")
 cur = con.cursor()
diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py
--- a/Lib/sqlite3/test/hooks.py
+++ b/Lib/sqlite3/test/hooks.py
@@ -25,12 +25,6 @@
 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:
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /