Kaydet (Commit) 9810427e authored tarafından Benjamin Peterson's avatar Benjamin Peterson

Merged revisions 87895 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87895 | lukasz.langa | 2011-01-09 12:18:53 -0600 (Sun, 09 Jan 2011) | 5 lines

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

  Patch by Adreas Stührk.
........
üst f4676b03
......@@ -748,7 +748,7 @@ class HandlerTests(unittest.TestCase):
else:
self.assertTrue(o.req is req)
self.assertEqual(req.type, "ftp")
self.assertEqual(req.type is "ftp", ftp)
self.assertEqual(req.type == "ftp", ftp)
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