Skip to content

Commit 2859802

Browse files
committed
review comments
1 parent 4b39149 commit 2859802

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_set.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2164,8 +2164,9 @@ def test_set(self):
21642164

21652165
def test_frozenset(self):
21662166
# Test the PySet_Add c-api for frozenset objects
2167-
assert _testcapi.pyset_add(frozenset(), 1) == frozenset([1])
2167+
self.assertEqual(_testcapi.pyset_add(frozenset(), 1), frozenset([1]))
21682168
frozen_set = frozenset()
2169+
# if the argument to PySet_Add is a frozenset that is not uniquely references an error is generated
21692170
self.assertRaises(SystemError, _testcapi.pyset_add, frozen_set, 1)
21702171

21712172
def test_frozenset_gc_tracking(self):

0 commit comments

Comments
 (0)