Skip to content

Commit 9409301

Browse files
fix: Remove string check of error message. (#4355)
Remove string check of error message. --------- Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 0756e41 commit 9409301

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

doc/changelog.d/4355.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove string check of error message.

tests/test_session.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -603,12 +603,7 @@ def test_general_exception_behaviour_in_session(new_solver_session):
603603
graphics.mesh["mesh-1"].display()
604604

605605
# Post-process without data
606-
match_str = (
607-
"Invalid result name."
608-
if fluent_version == FluentVersion.v242
609-
else "object is not active"
610-
)
611-
with pytest.raises(RuntimeError, match=match_str) as exec_info:
606+
with pytest.raises(RuntimeError) as exec_info:
612607
# Invalid result.
613608
graphics.contour["contour-velocity"] = {
614609
"field": "velocity-magnitude",

0 commit comments

Comments
 (0)