Commit 859416e9 authored by Antoine Pitrou's avatar Antoine Pitrou

Fix sporadic failure in test_weakset

parent 1cb2e042
......@@ -116,9 +116,6 @@ class WeakSet(object):
def update(self, other):
if self._pending_removals:
self._commit_removals()
if isinstance(other, self.__class__):
self.data.update(other.data)
else:
for element in other:
self.add(element)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment