We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4554ab4 commit 05d0fcdCopy full SHA for 05d0fcd
Lib/test/test_collections.py
@@ -1423,8 +1423,12 @@ def discard(self,v):
1423
return result
1424
def __repr__(self):
1425
return "MySet(%s)" % repr(list(self))
1426
- s = MySet([5,43,2,1])
1427
- self.assertEqual(s.pop(), 1)
+ items = [5,43,2,1]
+ s = MySet(items)
1428
+ r = s.pop()
1429
+ self.assertEquals(len(s), len(items) - 1)
1430
+ self.assertNotIn(r, s)
1431
+ self.assertIn(r, items)
1432
1433
def test_issue8750(self):
1434
empty = WithSet()
0 commit comments