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 3b1cf20 commit b3e8722Copy full SHA for b3e8722
Lib/test/test_collections.py
@@ -1502,8 +1502,12 @@ def discard(self,v):
1502
return result
1503
def __repr__(self):
1504
return "MySet(%s)" % repr(list(self))
1505
- s = MySet([5,43,2,1])
1506
- self.assertEqual(s.pop(), 1)
+ items = [5,43,2,1]
+ s = MySet(items)
1507
+ r = s.pop()
1508
+ self.assertEquals(len(s), len(items) - 1)
1509
+ self.assertNotIn(r, s)
1510
+ self.assertIn(r, items)
1511
1512
def test_issue8750(self):
1513
empty = WithSet()
0 commit comments