Commit cf1fcb42 authored by Łukasz Langa's avatar Łukasz Langa

#10874: test_urllib2 shouldn't use `is` operator for comparing strings

Patch by Adreas Stührk.
parent 8fe3286e
...@@ -758,7 +758,7 @@ class HandlerTests(unittest.TestCase): ...@@ -758,7 +758,7 @@ class HandlerTests(unittest.TestCase):
else: else:
self.assertIs(o.req, req) self.assertIs(o.req, req)
self.assertEqual(req.type, "ftp") self.assertEqual(req.type, "ftp")
self.assertEqual(req.type is "ftp", ftp) self.assertEqual(req.type == "ftp", ftp)
def test_http(self): def test_http(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment