Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_userstring.py @ 58472:6ffcdafa0118 legacy-trunk
use assert[Not]IsInstance where appropriate
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Sun, 24 Jan 2010 16:58:36 +0000 |
| parents | 0dd1aa33265f |
| children | f0bc6d8aa21e |
line wrap: on
line diff
--- a/Lib/test/test_userstring.py Sun Jan 24 00:33:32 2010 +0000 +++ b/Lib/test/test_userstring.py Sun Jan 24 16:58:36 2010 +0000 @@ -114,7 +114,7 @@ s = self.type2test("foobar") s2 = s.immutable() self.assertEqual(s, s2) - self.assertTrue(isinstance(s2, UserString)) + self.assertIsInstance(s2, UserString) def test_iadd(self): s = self.type2test("foo")
