Skip to content

Commit

Permalink
update tests for upcoming Mechanical release version
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinknair committed Nov 8, 2024
1 parent 647d4d2 commit 2a6404c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/embedding/test_background.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def _run_background_app_test(
Returns the stderr of the subprocess as a string.
"""
subprocess_pass_expected = pass_expected
if pass_expected == True and os.name != "nt":
version = pytestconfig.getoption("ansys_version")
if pass_expected == True and os.name != "nt" and int(version) < 251:
subprocess_pass_expected = False
stdout, stderr = _run_background_app_test_process(
rootdir, run_subprocess, pytestconfig, testname, subprocess_pass_expected
Expand Down
3 changes: 2 additions & 1 deletion tests/embedding/test_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def _run_embedding_log_test(
Returns the stderr
"""
subprocess_pass_expected = pass_expected
if pass_expected == True and os.name != "nt":
version = pytestconfig.getoption("ansys_version")
if pass_expected == True and os.name != "nt" and int(version) < 251:
subprocess_pass_expected = False
stdout, stderr = _run_embedding_log_test_process(
rootdir, run_subprocess, pytestconfig, testname, subprocess_pass_expected
Expand Down

0 comments on commit 2a6404c

Please sign in to comment.