summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-01-12 19:27:17 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-01-12 19:27:17 (GMT)
commit9810427e4160fea1fda5a041e0bc11efe5f47033 (patch)
tree1b574b6f72f46bc06051ae225a14da4cef91b9fd /Lib/test
parentf4676b0378a46f739857d123692b1698d50aadaa (diff)
downloadcpython-9810427e4160fea1fda5a041e0bc11efe5f47033.zip
cpython-9810427e4160fea1fda5a041e0bc11efe5f47033.tar.gz
cpython-9810427e4160fea1fda5a041e0bc11efe5f47033.tar.bz2
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')
-rw-r--r--Lib/test/test_urllib2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index b74320d..789dcd3 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -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):