Skip to content

Commit 3e8c3d0

Browse files
committed
address review comments
1 parent 893eec9 commit 3e8c3d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_add.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
def test_add(git2cpp_path, all_flag):
99
with open("./test/mook_file.txt", "x") as f:
1010
pass
11-
f.close()
1211

1312
with open("./test/mook_file_2.txt", "x") as f:
1413
pass
15-
f.close()
1614

1715
cmd_add = [git2cpp_path, 'add']
1816
if all_flag != "":
@@ -33,4 +31,6 @@ def test_add(git2cpp_path, all_flag):
3331

3432
os.remove("./test/mook_file.txt")
3533
os.remove("./test/mook_file_2.txt")
34+
35+
# undo the add, to leave the test directory at the end the same as it was at the start
3636
subprocess.run(cmd_add, capture_output=True, text=True)

0 commit comments

Comments
 (0)