summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_set.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-11-21 07:56:36 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-11-21 07:56:36 (GMT)
commit3fbec701cae361de6beca55bc926e0540635f165 (patch)
treec192fc82927882e3c8ba16708bd264752a690e42 /Lib/test/test_set.py
parent82d73dd459d911dcb12a48db12b7f8b3eb0f6b1b (diff)
downloadcpython-3fbec701cae361de6beca55bc926e0540635f165.zip
cpython-3fbec701cae361de6beca55bc926e0540635f165.tar.gz
cpython-3fbec701cae361de6beca55bc926e0540635f165.tar.bz2
issubset() and issuperset() to work with general iterables
Diffstat (limited to 'Lib/test/test_set.py')
-rw-r--r--Lib/test/test_set.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py
index 8329fd1..c33461d 100644
--- a/Lib/test/test_set.py
+++ b/Lib/test/test_set.py
@@ -143,6 +143,10 @@ class TestJointOps(unittest.TestCase):
self.failIf(q <= r)
self.failIf(q > r)
self.failIf(q >= r)
+ self.assert_(set('a').issubset('abc'))
+ self.assert_(set('abc').issuperset('a'))
+ self.failIf(set('a').issubset('cbs'))
+ self.failIf(set('cbs').issuperset('a'))
def test_pickling(self):
p = pickle.dumps(self.s)