mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +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
|
@ -970,7 +970,7 @@ class ByteArraySubclassTest(unittest.TestCase):
|
|||
|
||||
def test_basic(self):
|
||||
self.assertTrue(issubclass(ByteArraySubclass, bytearray))
|
||||
self.assertTrue(isinstance(ByteArraySubclass(), bytearray))
|
||||
self.assertIsInstance(ByteArraySubclass(), bytearray)
|
||||
|
||||
a, b = b"abcd", b"efgh"
|
||||
_a, _b = ByteArraySubclass(a), ByteArraySubclass(b)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue