diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-05-22 20:27:32 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-05-22 20:27:32 (GMT) |
commit | 965efe9e5efdeb53e10f181eb3d872e8f402a9fe (patch) | |
tree | bb86e85d624ad0c99f7915d08f092305c7ffeb56 | |
parent | 447b6e3c6ece7db5eb056311b473285366f6cadb (diff) | |
parent | 67246127553cc69b97d13753de1d8d0c9bfffd66 (diff) | |
download | cpython-965efe9e5efdeb53e10f181eb3d872e8f402a9fe.zip cpython-965efe9e5efdeb53e10f181eb3d872e8f402a9fe.tar.gz cpython-965efe9e5efdeb53e10f181eb3d872e8f402a9fe.tar.bz2 |
merge 3.3
-rw-r--r-- | Lib/test/test_weakset.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_weakset.py b/Lib/test/test_weakset.py index 4d3878f..5b782da 100644 --- a/Lib/test/test_weakset.py +++ b/Lib/test/test_weakset.py @@ -340,6 +340,12 @@ class TestWeakSet(unittest.TestCase): self.assertFalse(self.s == WeakSet([Foo])) self.assertFalse(self.s == 1) + def test_ne(self): + self.assertTrue(self.s != set(self.items)) + s1 = WeakSet() + s2 = WeakSet() + self.assertFalse(s1 != s2) + def test_weak_destroy_while_iterating(self): # Issue #7105: iterators shouldn't crash when a key is implicitly removed # Create new items to be sure no-one else holds a reference |