mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
change deprecated unittest method calls into their proper names.
This commit is contained in:
parent
0d3fa833a1
commit
04cecafce1
7 changed files with 151 additions and 151 deletions
|
@ -65,10 +65,10 @@ class RegressionTests(unittest.TestCase):
|
|||
def CheckColumnNameWithSpaces(self):
|
||||
cur = self.con.cursor()
|
||||
cur.execute('select 1 as "foo bar [datetime]"')
|
||||
self.failUnlessEqual(cur.description[0][0], "foo bar")
|
||||
self.assertEqual(cur.description[0][0], "foo bar")
|
||||
|
||||
cur.execute('select 1 as "foo baz"')
|
||||
self.failUnlessEqual(cur.description[0][0], "foo baz")
|
||||
self.assertEqual(cur.description[0][0], "foo baz")
|
||||
|
||||
def CheckStatementAvailable(self):
|
||||
# pysqlite up to 2.3.2 crashed on this, because the active statement handle was not checked
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue