Skip to content

Commit c9ae925

Browse files
committed
use assertIsInstance
1 parent c7bf4ab commit c9ae925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,7 @@ class MyClass: pass
16461646
obj2 = MyClass()
16471647
d = obj2.__dict__
16481648
d[MyStr("attr1")] = 2
1649-
assert isinstance(list(d)[0], MyStr)
1649+
self.assertIsInstance(list(d)[0], MyStr)
16501650

16511651

16521652
class CAPITest(unittest.TestCase):

0 commit comments

Comments
 (0)