Skip to content

Commit

Permalink
add generic Exception and remove TypeCheckError
Browse files Browse the repository at this point in the history
  • Loading branch information
NishchayKarle committed Jun 4, 2024
1 parent e2c4275 commit 6775277
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions parsl/tests/unit/test_usage_tracking.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Test usage_tracking values."""

import pytest
from typeguard import TypeCheckError

import parsl
from parsl.config import Config
Expand Down Expand Up @@ -36,5 +35,5 @@ def test_invalid_values(level):
@pytest.mark.parametrize("level", ('abcd', None, bytes(1), 1.0, 1j, object()))
def test_invalid_types(level):
"""Test invalid usage_tracking types."""
with pytest.raises(TypeCheckError):
with pytest.raises(Exception):
Config(usage_tracking=level)

0 comments on commit 6775277

Please sign in to comment.