From 6775277ba8ea8b647b01a8aae5ce8cc2d789df74 Mon Sep 17 00:00:00 2001 From: nishchaykarle Date: Mon, 3 Jun 2024 19:16:57 -0500 Subject: [PATCH] add generic Exception and remove TypeCheckError --- parsl/tests/unit/test_usage_tracking.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parsl/tests/unit/test_usage_tracking.py b/parsl/tests/unit/test_usage_tracking.py index 72f20f2816..bf24b92781 100644 --- a/parsl/tests/unit/test_usage_tracking.py +++ b/parsl/tests/unit/test_usage_tracking.py @@ -1,7 +1,6 @@ """Test usage_tracking values.""" import pytest -from typeguard import TypeCheckError import parsl from parsl.config import Config @@ -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)