mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
use assert[Not]IsInstance where appropriate
This commit is contained in:
parent
f14c7fc33d
commit
b0f5adc3f4
57 changed files with 269 additions and 272 deletions
|
|
@ -593,7 +593,7 @@ class OtherTests(unittest.TestCase):
|
|||
with zipfile.ZipFile(TESTFN, "w") as zf:
|
||||
zf.writestr(u"foo.txt", "Test for unicode filename")
|
||||
zf.writestr(u"\xf6.txt", "Test for unicode filename")
|
||||
self.assertTrue(isinstance(zf.infolist()[0].filename, unicode))
|
||||
self.assertIsInstance(zf.infolist()[0].filename, unicode)
|
||||
|
||||
with zipfile.ZipFile(TESTFN, "r") as zf:
|
||||
self.assertEqual(zf.filelist[0].filename, "foo.txt")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue