Skip to content

Commit

Permalink
Merge branch 'master' into caplog
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangce authored Dec 20, 2024
2 parents a8c1a0d + 91adb4e commit 4dc8f78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions insights/tests/client/test_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def test_valid_signature():
signature=home + "/file.txt.asc",
key=home + "/key.public.gpg",
)
shutil.rmtree(home)
shutil.rmtree(home, ignore_errors=True)

# Verify results
assert True is result.ok
Expand Down Expand Up @@ -182,7 +182,7 @@ def test_no_file(file):
assert result.return_code > 0
assert "file '{path}' does not exist".format(path=home + file) == result.stderr

shutil.rmtree(home)
shutil.rmtree(home, ignore_errors=True)


@mock.patch("insights.client.crypto.GPGCommand.TEMPORARY_GPG_HOME_PARENT_DIRECTORY", "/tmp/")
Expand Down Expand Up @@ -220,7 +220,7 @@ def test_invalid_signature():
signature=home + "/file.txt.asc",
key=home + "/key.public.gpg",
)
shutil.rmtree(home)
shutil.rmtree(home, ignore_errors=True)

# Verify results
assert not result.ok
Expand Down

0 comments on commit 4dc8f78

Please sign in to comment.