use assert[Not]IsInstance where appropriate

This commit is contained in:
Ezio Melotti 2010-01-24 16:58:36 +00:00
parent f14c7fc33d
commit b0f5adc3f4
57 changed files with 269 additions and 272 deletions

View file

@ -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: