Message97871
A patch which provides a context manager and a decorator.
(with ideas from Ezio and Antoine)
Sample usages:
with temp_cwd() as cwd:
assert cwd == os.getcwd()
@writablecwd
def test_zipfile():
# do something useful
print os.path.abspath('.') |
|
Date |
User |
Action |
Args |
2010-01-16 11:42:34 | flox | set | recipients:
+ flox, pitrou, ezio.melotti |
2010-01-16 11:42:34 | flox | set | messageid: <1263642154.87.0.0508839370667.issue7712@psf.upfronthosting.co.za> |
2010-01-16 11:42:32 | flox | link | issue7712 messages |
2010-01-16 11:42:32 | flox | create | |
|