diff --git a/tests/core/pfline/test_pfline_arithmatic_kind_and_error.py b/tests/core/pfline/test_pfline_arithmatic_kind_and_error.py index 6cacac0..917beb6 100644 --- a/tests/core/pfline/test_pfline_arithmatic_kind_and_error.py +++ b/tests/core/pfline/test_pfline_arithmatic_kind_and_error.py @@ -631,12 +631,12 @@ def do_kind_test(testcase: Case, operation: str): pfl = testcase.pfl value = testcase.value expected = testcase.expected_result - + # !ATTN :new block if isinstance(value, float): pytest.skip( "It's impossible to create a PfLine with the provided data. Ensure that provided data has a unit." ) - elif isinstance(value, dict): + if isinstance(value, dict): if any(isinstance(value, float) for value in value.values()): pytest.skip( "It's impossible to create a PfLine with the provided data. Ensure that provided data has a unit." @@ -646,10 +646,11 @@ def do_kind_test(testcase: Case, operation: str): "It's impossible to create a PfLine with the provided data. Ensure that provided data has a unit." ) - elif isinstance(value, pd.Series) and pd.api.types.is_float_dtype(value): - pytest.skip( - "It's impossible to create a PfLine with the provided data. Ensure that provided data has a unit." - ) + if isinstance(value, pd.Series): + if any(isinstance(x, float) for x in value): + pytest.skip( + "It's impossible to create a PfLine with the provided data. Ensure that provided data has a unit." + ) if isinstance(value, pd.DataFrame) and any( pd.api.types.is_float_dtype(value[col]) for col in value.columns ):