mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
#9424: Replace deprecated assert* methods in the Python test suite.
This commit is contained in:
parent
b8bc439b20
commit
b3aedd4862
170 changed files with 2388 additions and 2392 deletions
|
@ -43,7 +43,7 @@ class ModuleTests(unittest.TestCase):
|
|||
sqlite.paramstyle)
|
||||
|
||||
def CheckWarning(self):
|
||||
self.assert_(issubclass(sqlite.Warning, Exception),
|
||||
self.assertTrue(issubclass(sqlite.Warning, Exception),
|
||||
"Warning is not a subclass of Exception")
|
||||
|
||||
def CheckError(self):
|
||||
|
|
|
@ -291,7 +291,7 @@ class ColNamesTests(unittest.TestCase):
|
|||
no row returned.
|
||||
"""
|
||||
self.cur.execute("select * from test where 0 = 1")
|
||||
self.assert_(self.cur.description[0][0] == "x")
|
||||
self.assertEqual(self.cur.description[0][0], "x")
|
||||
|
||||
class ObjectAdaptationTests(unittest.TestCase):
|
||||
def cast(obj):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue