mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +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
|
@ -114,7 +114,7 @@ class MutableStringTest(UserStringTest):
|
|||
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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue