From b9de139cc21f67dd6f90b715a2ea7018258505d8 Mon Sep 17 00:00:00 2001 From: german Date: Thu, 21 Mar 2024 12:12:50 +0000 Subject: [PATCH] trying catching the warn --- tests/test_mapdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_mapdl.py b/tests/test_mapdl.py index 6ed895a669..c3d781dc66 100644 --- a/tests/test_mapdl.py +++ b/tests/test_mapdl.py @@ -1315,7 +1315,7 @@ def test_tbft(mapdl, cleared, tmpdir, option2, option3, option4): output = mapdl.tbft("EADD", mat_id, "UNIA", option2, option3, option4, "", "", "") assert "Successfully Constructed Material Model" in output - with pytest.warns(UserWarning, match="Cannot create another with the same name"): + with pytest.warns(UserWarning): # checking warning if overwriting mapdl.tbft("FADD", mat_id, "HYPER", "MOONEY", "3")