Skip to content

Commit

Permalink
fix: Pass explicit exception to suppress
Browse files Browse the repository at this point in the history
  • Loading branch information
blarghmatey committed May 1, 2024
1 parent 0c1a0a9 commit 579c8dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion courses/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def test_create_run_enrollments_enroll_api_fail(
with (
pytest.raises(EdxEnrollmentCreateError)
if not keep_failed_enrollments
else contextlib.suppress()
else contextlib.suppress(EdxEnrollmentCreateError)
):
successful_enrollments, edx_request_success = create_run_enrollments(
user,
Expand Down

0 comments on commit 579c8dd

Please sign in to comment.