Skip to content

Commit a2fc562

Browse files
committed
gh-92810: Address review fixes
1 parent 602f031 commit a2fc562

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/test_abc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,22 @@ class TestABC(unittest.TestCase):
7373
def check_isinstance(self, obj, target_class):
7474
self.assertIsInstance(obj, target_class)
7575
self.assertIsInstance(obj, (target_class,))
76-
self.assertIsInstance(obj, target_class | target_class)
76+
self.assertIsInstance(obj, target_class | int)
7777

7878
def check_not_isinstance(self, obj, target_class):
7979
self.assertNotIsInstance(obj, target_class)
8080
self.assertNotIsInstance(obj, (target_class,))
81-
self.assertNotIsInstance(obj, target_class | target_class)
81+
self.assertNotIsInstance(obj, target_class | int)
8282

8383
def check_issubclass(self, klass, target_class):
8484
self.assertIsSubclass(klass, target_class)
8585
self.assertIsSubclass(klass, (target_class,))
86-
self.assertIsSubclass(klass, target_class | target_class)
86+
self.assertIsSubclass(klass, target_class | int)
8787

8888
def check_not_issubclass(self, klass, target_class):
8989
self.assertNotIsSubclass(klass, target_class)
9090
self.assertNotIsSubclass(klass, (target_class,))
91-
self.assertNotIsSubclass(klass, target_class | target_class)
91+
self.assertNotIsSubclass(klass, target_class | int)
9292

9393
def test_ABC_helper(self):
9494
# create an ABC using the helper class and perform basic checks

0 commit comments

Comments
 (0)