summaryrefslogtreecommitdiff
path: root/subversion/tests/cmdline/stat_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/tests/cmdline/stat_tests.py')
-rwxr-xr-xsubversion/tests/cmdline/stat_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/subversion/tests/cmdline/stat_tests.py b/subversion/tests/cmdline/stat_tests.py
index afab961..e0f1306 100755
--- a/subversion/tests/cmdline/stat_tests.py
+++ b/subversion/tests/cmdline/stat_tests.py
@@ -1949,7 +1949,8 @@ def modified_modulo_translation(sbox):
sbox.simple_commit()
# CRLF it.
- open(sbox.ospath('iota'), 'wb').write("This is the file 'iota'.\r\n")
+ with open(sbox.ospath('iota'), 'wb') as f:
+ f.write("This is the file 'iota'.\r\n")
# Run status. Expect some output.
# TODO: decide how such files should show in the output; whether they