[issue11491] dbm.open(..., flag="n") raises dbm.error if file exists and is rejected by whichdb
Brian Curtin
report at bugs.python.org
Mon Mar 14 18:40:28 CET 2011
Brian Curtin <brian at python.org> added the comment:
Attached is a slightly updated version of the patch. If the assertEqual for any reason were to fail, the file wouldn't be closed, leading to a ResourceWarning. That'll work on 3.2+, but if this is backported consideration will have to be made there (try/finally, probably).
Otherwise, in concept I think this patch is alright.
----------
Added file: http://bugs.python.org/file21123/issue11491.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11491>
_______________________________________
More information about the Python-bugs-list
mailing list