mirror of https://github.com/python/cpython
merge 3.3
This commit is contained in:
commit
965efe9e5e
|
@ -340,6 +340,12 @@ class TestWeakSet(unittest.TestCase):
|
||||||
self.assertFalse(self.s == WeakSet([Foo]))
|
self.assertFalse(self.s == WeakSet([Foo]))
|
||||||
self.assertFalse(self.s == 1)
|
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):
|
def test_weak_destroy_while_iterating(self):
|
||||||
# Issue #7105: iterators shouldn't crash when a key is implicitly removed
|
# Issue #7105: iterators shouldn't crash when a key is implicitly removed
|
||||||
# Create new items to be sure no-one else holds a reference
|
# Create new items to be sure no-one else holds a reference
|
||||||
|
|
Loading…
Reference in New Issue