diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 94bbc008dd0..9320e61c4ea 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -758,7 +758,7 @@ def test_file(self): 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):