Commit 5ce08a73 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 555cc2ed
......@@ -145,7 +145,11 @@ def connect(wc, at): # -> Conn
def close(wconn):
wconn._wlink.close()
wconn._pinCancel()
wconn._pinWG.wait() # XXX canceled - ok
try:
wconn._pinWG.wait()
except Exception as e: # canceled - ok
if e is not context.canceled:
raise
# close all files - both that have no mappings and that still have opened mappings.
# XXX after file is closed mappings continue to survive, but we can no
......
......@@ -1761,6 +1761,11 @@ def test_wcfspy_virtmem():
#assertData (m1, ['c1','d1',''])
at3 = t.commit(zf, {3:'d3'})
assert f.pinned == {2:at1}
tm1.assertBlk(3, 'd1')
assert f.pinned == {2:at1, 3:at1}
# ---- misc ---
......
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