mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Merged revisions 73715 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
This commit is contained in:
parent
ef82be368a
commit
ab91fdef1f
274 changed files with 4538 additions and 4538 deletions
|
@ -34,7 +34,7 @@ class QueryTestCase(unittest.TestCase):
|
|||
|
||||
def test_basic(self):
|
||||
# Verify .isrecursive() and .isreadable() w/o recursion
|
||||
verify = self.assert_
|
||||
verify = self.assertTrue
|
||||
pp = pprint.PrettyPrinter()
|
||||
for safe in (2, 2.0, 2j, "abc", [3], (2,2), {3: 3}, "yaddayadda",
|
||||
self.a, self.b):
|
||||
|
@ -57,7 +57,7 @@ class QueryTestCase(unittest.TestCase):
|
|||
self.d = {}
|
||||
self.d[0] = self.d[1] = self.d[2] = self.d
|
||||
|
||||
verify = self.assert_
|
||||
verify = self.assertTrue
|
||||
pp = pprint.PrettyPrinter()
|
||||
|
||||
for icky in self.a, self.b, self.d, (self.d, self.d):
|
||||
|
@ -85,7 +85,7 @@ class QueryTestCase(unittest.TestCase):
|
|||
|
||||
def test_unreadable(self):
|
||||
# Not recursive but not readable anyway
|
||||
verify = self.assert_
|
||||
verify = self.assertTrue
|
||||
pp = pprint.PrettyPrinter()
|
||||
for unreadable in type(3), pprint, pprint.isrecursive:
|
||||
# module-level convenience functions
|
||||
|
@ -108,7 +108,7 @@ class QueryTestCase(unittest.TestCase):
|
|||
# it sorted a dict display if and only if the display required
|
||||
# multiple lines. For that reason, dicts with more than one element
|
||||
# aren't tested here.
|
||||
verify = self.assert_
|
||||
verify = self.assertTrue
|
||||
for simple in (0, 0, 0+0j, 0.0, "", b"",
|
||||
(), tuple2(), tuple3(),
|
||||
[], list2(), list3(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue