summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2.py
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2011-01-09 18:18:53 (GMT)
committerŁukasz Langa <lukasz@langa.pl>2011-01-09 18:18:53 (GMT)
commitd7e81cc5fa6a432a99dae06967823a0a3bf9a0e7 (patch)
tree2207da5852338b2a78745c6356954b2da16a4fda /Lib/test/test_urllib2.py
parent04536b0edfb79998bee57228884cda0a1692d6ed (diff)
downloadcpython-d7e81cc5fa6a432a99dae06967823a0a3bf9a0e7.zip
cpython-d7e81cc5fa6a432a99dae06967823a0a3bf9a0e7.tar.gz
cpython-d7e81cc5fa6a432a99dae06967823a0a3bf9a0e7.tar.bz2
#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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index b8a609e..17323d5 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):