The pythonic way to guard resources is using a with statement. This patch adds a class that allows the creation and deletion of temporary files using a with statement.
Details
Diff Detail
Event Timeline
This looks reasonable to me.
test/lit.cfg | ||
---|---|---|
135 | Can self._evaluate_test throw? If so, you'll skip the call to _clean. |
test/lit.cfg | ||
---|---|---|
135 | I would like @danalbert to comment on this. I think he uses _clean() in the android configuration. |
test/lit.cfg | ||
---|---|---|
135 | _clean() should be thought of as a virtual method. It needs to be overridden for remote execution because the steps taken to clean up remote workspaces will vary. |
test/lit.cfg | ||
---|---|---|
23 | Doesn't contextlib cover this? |
Doesn't contextlib cover this?