mirror of
https://github.com/python/cpython.git
synced 2025-11-20 02:50:14 +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
|
|
@ -125,8 +125,8 @@ class TestNtpath(unittest.TestCase):
|
|||
|
||||
# Issue 5827: Make sure normpath preserves unicode
|
||||
for path in (u'', u'.', u'/', u'\\', u'///foo/.//bar//'):
|
||||
self.assertTrue(isinstance(ntpath.normpath(path), unicode),
|
||||
'normpath() returned str instead of unicode')
|
||||
self.assertIsInstance(ntpath.normpath(path), unicode,
|
||||
'normpath() returned str instead of unicode')
|
||||
|
||||
def test_expandvars(self):
|
||||
with test_support.EnvironmentVarGuard() as env:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue