Commit c0e71ad7 authored by Maciej Fijalkowski's avatar Maciej Fijalkowski

another fix for tests

parent fc4156cd
......@@ -63,10 +63,13 @@ def unpin(obj):
"""Unpin 'obj', allowing it to move again.
Must only be called after a call to pin(obj) returned True.
"""
for i in range(len(_pinned_objects)):
i = 0
while i < len(_pinned_objects):
try:
if _pinned_objects[i] == obj:
del _pinned_objects[i]
else:
i += 1
except TypeError:
pass
......
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