mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#10874: test_urllib2 shouldn't use is
operator for comparing strings
Patch by Adreas Stührk.
This commit is contained in:
parent
04536b0edf
commit
d7e81cc5fa
1 changed files with 1 additions and 1 deletions
|
@ -758,7 +758,7 @@ class HandlerTests(unittest.TestCase):
|
|||
else:
|
||||
self.assertIs(o.req, req)
|
||||
self.assertEqual(req.type, "ftp")
|
||||
self.assertEqual(req.type is "ftp", ftp)
|
||||
self.assertEqual(req.type == "ftp", ftp)
|
||||
|
||||
def test_http(self):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue