Mercurial > hg-stable
changeset 14880:5233df79deed stable
test-commandserver: explicitly close opened file
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Fri, 15 Jul 2011 16:28:09 +0300 |
parents | 29d324c2bc93 |
children | 2e54387976d4 |
files | tests/test-commandserver.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-commandserver.py Wed Jul 13 19:30:09 2011 -0500 +++ b/tests/test-commandserver.py Fri Jul 15 16:28:09 2011 +0300 @@ -124,7 +124,9 @@ """ check that --cwd doesn't persist between requests """ readchannel(server) os.mkdir('foo') - open('foo/bar', 'w').write('a') + f = open('foo/bar', 'w') + f.write('a') + f.close() runcommand(server, ['--cwd', 'foo', 'st', 'bar']) runcommand(server, ['st', 'foo/bar']) os.remove('foo/bar')