mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
gh-92810: Address review fixes
This commit is contained in:
parent
602f0319d6
commit
a2fc5622dd
1 changed files with 4 additions and 4 deletions
|
|
@ -73,22 +73,22 @@ def test_factory(abc_ABCMeta, abc_get_cache_token):
|
|||
def check_isinstance(self, obj, target_class):
|
||||
self.assertIsInstance(obj, target_class)
|
||||
self.assertIsInstance(obj, (target_class,))
|
||||
self.assertIsInstance(obj, target_class | target_class)
|
||||
self.assertIsInstance(obj, target_class | int)
|
||||
|
||||
def check_not_isinstance(self, obj, target_class):
|
||||
self.assertNotIsInstance(obj, target_class)
|
||||
self.assertNotIsInstance(obj, (target_class,))
|
||||
self.assertNotIsInstance(obj, target_class | target_class)
|
||||
self.assertNotIsInstance(obj, target_class | int)
|
||||
|
||||
def check_issubclass(self, klass, target_class):
|
||||
self.assertIsSubclass(klass, target_class)
|
||||
self.assertIsSubclass(klass, (target_class,))
|
||||
self.assertIsSubclass(klass, target_class | target_class)
|
||||
self.assertIsSubclass(klass, target_class | int)
|
||||
|
||||
def check_not_issubclass(self, klass, target_class):
|
||||
self.assertNotIsSubclass(klass, target_class)
|
||||
self.assertNotIsSubclass(klass, (target_class,))
|
||||
self.assertNotIsSubclass(klass, target_class | target_class)
|
||||
self.assertNotIsSubclass(klass, target_class | int)
|
||||
|
||||
def test_ABC_helper(self):
|
||||
# create an ABC using the helper class and perform basic checks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue