Skip to content

Commit

Permalink
fixing not raising wanring
Browse files Browse the repository at this point in the history
  • Loading branch information
german committed Mar 21, 2024
1 parent 18682db commit 29e1a28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ansys/mapdl/core/mapdl_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2712,14 +2712,14 @@ def _raise_errors(self, text):

if "For element type = " in flat_text and "is invalid." in flat_text:
if "is normal behavior when a CDB file is used." in flat_text:
warn(text)
warn(text, UserWarning)
else:
text += base_error_msg
raise MapdlCommandIgnoredError(text)

if "Cannot create another with the same name" in flat_text:
# When overriding constitutive models. See 'test_tbft'
warn(flat_text)
warn(text, UserWarning)

# flag errors
if "*** ERROR ***" in flat_text:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mapdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ def test_get_file_path(mapdl, tmpdir):
("expdata", "dat", "DIR"),
],
)
def test_tbft(mapdl, tmpdir, option2, option3, option4):
def test_tbft(mapdl, cleared, tmpdir, option2, option3, option4):
fname = "expdata.dat"
dirpath = tmpdir.mkdir("tmpdir")
fpath = dirpath.join(fname)
Expand Down

0 comments on commit 29e1a28

Please sign in to comment.