aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_dotfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_dotfile.py')
-rw-r--r--tests/test_dotfile.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_dotfile.py b/tests/test_dotfile.py
index fdb51da..a4584e3 100644
--- a/tests/test_dotfile.py
+++ b/tests/test_dotfile.py
@@ -38,12 +38,10 @@ def test_state(repo):
dotfile.name.ensure()
assert dotfile.state == 'ok'
- with open(dotfile.name, 'w') as f:
- f.write('test content')
+ dotfile.name.write('test content')
assert dotfile.state == 'conflict'
- with open(dotfile.target, 'w') as f:
- f.write('test content')
+ dotfile.target.write('test content')
assert dotfile.state == 'ok'