commit | 8d6cd54b45bc68afdb92c328aa2c84dd9aaf9872 | [log] [tgz] |
---|---|---|
author | Christopher Wiley <wiley@chromium.org> | Mon Mar 11 11:10:44 2013 -0700 |
committer | ChromeBot <chrome-bot@google.com> | Tue Mar 12 09:08:00 2013 -0700 |
tree | 603d8e12462a5ccbff9199222779c1896ad1bbc1 | |
parent | 3435de95fd6950d4bc2567bd1d19e6e54f73ecae [diff] |
autotest: Add context manager wrapper Add a decorator that grabs a named context manager from self before calling the wrapped function. BUG=None TEST=Included unit test Change-Id: Id8271c36c98f393a6d0617f0eeb881217f5b3a8d Reviewed-on: https://gerrit.chromium.org/gerrit/45114 Commit-Queue: Christopher Wiley <wiley@chromium.org> Reviewed-by: Christopher Wiley <wiley@chromium.org> Tested-by: Christopher Wiley <wiley@chromium.org>