Skip to content

Commit 27f8d96

Browse files
committed
test(unit_load): Delete files we create in fixture
1 parent cc4233d commit 27f8d96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/t/unit/test_unit_load.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def fixture_dir(self, request, bash):
3333
assert_bash_exec(
3434
bash, "ln -sf ../prefix1/sbin/cmd2 %s/bin/cmd2" % tmpdir
3535
)
36-
return str(tmpdir)
36+
yield str(tmpdir)
37+
assert_bash_exec(bash, "rm -rf %s/*" % tmpdir)
3738

3839
def test_userdir_1(self, bash, fixture_dir):
3940
with bash_env_saved(bash) as bash_env:

0 commit comments

Comments
 (0)