mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
this should be an identity test
This commit is contained in:
parent
5702ae6f3f
commit
eef80b6e70
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user