diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-01-12 19:29:51 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-01-12 19:29:51 +0000 |
commit | ecb6e81d9e8ed0769a68c8715e81c1b67b583ba4 (patch) | |
tree | bc8a850527cfdec7a361a91ccf4ae98083c512e0 /Lib/test/test_urllib2.py | |
parent | a53d2acb3d14ff497d8f28efcec2c5567a8426c4 (diff) | |
download | cpython-git-ecb6e81d9e8ed0769a68c8715e81c1b67b583ba4.tar.gz |
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.
........
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r-- | Lib/test/test_urllib2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 94bbc008dd..9320e61c4e 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -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): |