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 3f3d82b commit 453074cCopy full SHA for 453074c
Lib/test/test_collections.py
@@ -1512,8 +1512,12 @@ def discard(self,v):
1512
return result
1513
def __repr__(self):
1514
return "MySet(%s)" % repr(list(self))
1515
- s = MySet([5,43,2,1])
1516
- self.assertEqual(s.pop(), 1)
+ items = [5,43,2,1]
+ s = MySet(items)
1517
+ r = s.pop()
1518
+ self.assertEquals(len(s), len(items) - 1)
1519
+ self.assertNotIn(r, s)
1520
+ self.assertIn(r, items)
1521
1522
def test_issue8750(self):
1523
empty = WithSet()
0 commit comments