Skip to content

Commit

Permalink
[test] Properly assert exception in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kwk committed Aug 21, 2024
1 parent cad4628 commit f2f8737
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions snapshot_manager/tests/testing_farm_util_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@ def test_make_with_missing_compose(self):
strategy="big-merge", github_repo="fedora-llvm-team/llvm-snapshots"
)

self.assertRaises(
SystemError,
with self.assertRaises(SystemError):
tf.TestingFarmRequest.make(
chroot="fedora-900-x86_64",
config=self.config,
issue=issue,
copr_build_ids=[1, 2, 3],
),
)
)

def test_fetch_failed_test_cases_from_file(self):
request_id = "1f25b0df-71f1-4a13-a4b8-c066f6f5f116"
Expand Down

0 comments on commit f2f8737

Please sign in to comment.