Skip to content

Commit e4f8db5

Browse files
germa89akaszynski
andauthored
Small fixes. (#625)
* Small fixes. Updated versions numbers and removing an odd -1. * Small fixes * Update tests/test_pool.py Co-authored-by: Alex Kaszynski <[email protected]>
1 parent bb3f616 commit e4f8db5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/test_launcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import pytest
66
from ansys.mapdl import core as pymapdl
7-
from ansys.mapdl.core.launcher import _version_from_path, get_start_instance
7+
from ansys.mapdl.core.launcher import _version_from_path, get_start_instance, _validate_add_sw
88
from ansys.mapdl.core.misc import get_ansys_bin
99

1010
try:

tests/test_pool.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@
2727

2828
TWAIT = 90
2929

30-
valid_rver = ["211", "202", "201", "195", "194", "193", "192", "191"]
30+
valid_rver = ["221", "212", "211", "202", "201", "195", "194", "193", "192", "191"]
3131
EXEC_FILE = None
3232
for rver in valid_rver:
3333
if os.path.isfile(get_ansys_bin(rver)):
3434
EXEC_FILE = get_ansys_bin(rver)
3535
break
3636

37-
3837
@pytest.fixture(scope="module")
3938
def pool():
4039
mapdl_pool = LocalMapdlPool(4, exec_file=EXEC_FILE)
@@ -170,7 +169,7 @@ def test_abort(pool, tmpdir):
170169
input_files += [tmp_file]
171170

172171
outputs = pool.run_batch(input_files)
173-
assert len(outputs) == len(input_files) - 1
172+
assert len(outputs) == len(input_files)
174173

175174
# ensure failed instance restarts
176175
timeout = time.time() + TWAIT

0 commit comments

Comments
 (0)