Commit 4cf93ebe authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8b469aba
......@@ -420,7 +420,9 @@ def commit(description, skipIfEmpty=False): # -> tid | None
obj = zconn._registered_objects[0]
# FIXME vvv fails sometims with obj._p_state=0 (UPTODATE)
# see e.g. https://erp5.nexedi.net/test_result_module/20201016-89AA413F/5
assert obj._p_state == CHANGED, obj._p_state
# XXX objects in zconn._registered_objects are not necessarily in CHANGED state:
# https://github.com/zopefoundation/ZODB/blob/5.6.0-19-gdad778016/src/ZODB/Connection.py#L516-L530
assert obj._p_state == CHANGED, (obj._p_state, obj)
txn.commit()
return obj._p_serial
......
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