fixing a (likely) race condition when simultanous pickling/unpickling can leave

inconsistent memo states.  Rather than adding locks, the fix actually simplifies the code by
keeping the pickling/unpickling memo's in sync directly and more efficiently, also removing
a long outstanding XXX.
This commit is contained in:
holger krekel
2010-04-30 15:56:48 +02:00
parent 1bc7812dcc
commit 45f7787fe2
2 changed files with 20 additions and 40 deletions

View File

@@ -252,10 +252,3 @@ class TestPickleChannelFunctional:
channel.waitclose(timeout=2)
def test_explode():
from xdist.mypickle import explode
assert isinstance(explode({}.values()), list)
l = []
assert isinstance(explode(l), list)
assert explode(l) is l