From d7e81cc5fa6a432a99dae06967823a0a3bf9a0e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Sun, 9 Jan 2011 18:18:53 +0000 Subject: #10874: test_urllib2 shouldn't use `is` operator for comparing strings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Adreas Stührk. --- Lib/test/test_urllib2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v0.12