I saw again this problem, and was my fault to don't understand what happen..
1) there is no exception
2) the exception happened because I try to publish 2 times in pdb session
The problem is that it looks like it publish the object, but don't set the EffectiveDate, so pub_date thinks the object is not published and the test fail.