Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eef80b6

Browse files
committed
this should be an identity test
1 parent 5702ae6 commit eef80b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_http_cookiejar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def test_bad_magic(self):
257257
"filename should not exist")
258258
except IOError as exc:
259259
# exactly IOError, not LoadError
260-
self.assertEqual(exc.__class__, IOError)
260+
self.assertIs(exc.__class__, IOError)
261261
else:
262262
self.fail("expected IOError for invalid filename")
263263
# Invalid contents of cookies file (eg. bad magic string)

0 commit comments

Comments
 (0)