Skip to content

Commit

Permalink
refactor: removing as.
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Nov 25, 2024
1 parent 526e513 commit 7fcc4fe
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_mapdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2560,11 +2560,9 @@ def func(*args, **kwargs):

# We can't use "reload" here because it seems to remove the patching
with (
patch("ansys.mapdl.core.helpers.get_python_version", func) as mck_pyver,
patch(
"ansys.mapdl.core.DEPRECATING_MINIMUM_PYTHON_VERSION", deprecating
) as mck_dep,
patch("ansys.mapdl.core.MINIMUM_PYTHON_VERSION", minimal_version) as mck_min,
patch("ansys.mapdl.core.helpers.get_python_version", func),
patch("ansys.mapdl.core.DEPRECATING_MINIMUM_PYTHON_VERSION", deprecating),
patch("ansys.mapdl.core.MINIMUM_PYTHON_VERSION", minimal_version),
context,
):
pymapdl.helpers.run_first_time()
Expand Down

0 comments on commit 7fcc4fe

Please sign in to comment.