this should be an identity test

This commit is contained in:
Benjamin Peterson 2011-07-14 10:03:35 -05:00
parent 5702ae6f3f
commit eef80b6e70

View 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)