Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 447b6e3 + 6724612 commit 965efe9Copy full SHA for 965efe9
1 file changed
Lib/test/test_weakset.py
@@ -340,6 +340,12 @@ def test_eq(self):
340
self.assertFalse(self.s == WeakSet([Foo]))
341
self.assertFalse(self.s == 1)
342
343
+ def test_ne(self):
344
+ self.assertTrue(self.s != set(self.items))
345
+ s1 = WeakSet()
346
+ s2 = WeakSet()
347
+ self.assertFalse(s1 != s2)
348
+
349
def test_weak_destroy_while_iterating(self):
350
# Issue #7105: iterators shouldn't crash when a key is implicitly removed
351
# Create new items to be sure no-one else holds a reference
0 commit comments