]> granicus.if.org Git - python/commitdiff
this should be an identity test
authorBenjamin Peterson <benjamin@python.org>
Thu, 14 Jul 2011 15:03:35 +0000 (10:03 -0500)
committerBenjamin Peterson <benjamin@python.org>
Thu, 14 Jul 2011 15:03:35 +0000 (10:03 -0500)
Lib/test/test_http_cookiejar.py

index 712a4ae6398042aa25ed632b30b591944e4ecf81..41e0dfde33060bd46b4bd9995fe4db59661111f8 100644 (file)
@@ -257,7 +257,7 @@ class FileCookieJarTests(unittest.TestCase):
                                 "filename should not exist")
             except IOError as exc:
                 # exactly IOError, not LoadError
-                self.assertEqual(exc.__class__, IOError)
+                self.assertIs(exc.__class__, IOError)
             else:
                 self.fail("expected IOError for invalid filename")
         # Invalid contents of cookies file (eg. bad magic string)