mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Merged revisions 86596 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
This commit is contained in:
parent
b65b4937e2
commit
19f2aeba67
164 changed files with 2281 additions and 2279 deletions
|
|
@ -40,7 +40,7 @@ def CheckParamStyle(self):
|
|||
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):
|
||||
|
|
|
|||
|
|
@ -286,7 +286,7 @@ def CheckCursorDescriptionNoRow(self):
|
|||
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