mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Merged revisions 77727 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line use assert[Not]IsInstance where appropriate ........
This commit is contained in:
parent
f41d29a8eb
commit
e96159335f
52 changed files with 287 additions and 288 deletions
|
|
@ -589,12 +589,12 @@ class OpenerDirectorTests(unittest.TestCase):
|
|||
# *_request
|
||||
self.assertEqual((handler, name), calls[i])
|
||||
self.assertEqual(len(args), 1)
|
||||
self.assertTrue(isinstance(args[0], Request))
|
||||
self.assertIsInstance(args[0], Request)
|
||||
else:
|
||||
# *_response
|
||||
self.assertEqual((handler, name), calls[i])
|
||||
self.assertEqual(len(args), 2)
|
||||
self.assertTrue(isinstance(args[0], Request))
|
||||
self.assertIsInstance(args[0], Request)
|
||||
# response from opener.open is None, because there's no
|
||||
# handler that defines http_open to handle it
|
||||
self.assertTrue(args[1] is None or
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue