diff options
Diffstat (limited to 'Lib/test/test_sets.py')
-rw-r--r-- | Lib/test/test_sets.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_sets.py b/Lib/test/test_sets.py index f0a1925..416b7ca 100644 --- a/Lib/test/test_sets.py +++ b/Lib/test/test_sets.py @@ -596,6 +596,7 @@ class TestOnlySetsInBinaryOps(unittest.TestCase): self.set.difference(self.other) else: self.assertRaises(TypeError, self.set.difference, self.other) + #------------------------------------------------------------------------------ class TestOnlySetsNumeric(TestOnlySetsInBinaryOps): @@ -647,6 +648,14 @@ class TestOnlySetsGenerator(TestOnlySetsInBinaryOps): self.other = gen() self.otherIsIterable = True +#------------------------------------------------------------------------------ + +class TestOnlySetsofSets(TestOnlySetsInBinaryOps): + def setUp(self): + self.set = Set((1, 2, 3)) + self.other = [Set('ab'), ImmutableSet('cd')] + self.otherIsIterable = True + #============================================================================== class TestCopying(unittest.TestCase): @@ -801,6 +810,7 @@ def test_main(verbose=None): TestOnlySetsTuple, TestOnlySetsString, TestOnlySetsGenerator, + TestOnlySetsofSets, TestCopyingEmpty, TestCopyingSingleton, TestCopyingTriple, |