Skip to content

Commit 4cfb7a2

Browse files
authored
Cleanup track files in test_x2sys_cross_input_two_filenames (#552)
* Cleanup track files in test_x2sys_cross_input_two_filenames * Fix pylint expression-not-assigned error
1 parent a851624 commit 4cfb7a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pygmt/tests/test_x2sys_cross.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def test_x2sys_cross_input_two_filenames(mock_x2sys_home):
121121
columns = list(output.columns)
122122
assert columns[:6] == ["x", "y", "i_1", "i_2", "dist_1", "dist_2"]
123123
assert columns[6:] == ["head_1", "head_2", "vel_1", "vel_2", "z_X", "z_M"]
124+
_ = [os.remove(f"track_{i}.xyz") for i in range(2)] # cleanup track files
124125

125126
return output
126127

0 commit comments

Comments
 (0)