Skip to content

Commit

Permalink
Revert "fix: removing __del__ method."
Browse files Browse the repository at this point in the history
This reverts commit 0ffdbec.
  • Loading branch information
germa89 committed Jul 17, 2024
1 parent 0ffdbec commit ac841bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@

class TestMapdlPool:

def __del__(self):
# making sure we are deleting everything
for each_mapdl in self.pool._instances:
each_mapdl.exit(force=True)

@pytest.fixture(scope="class")
def pool_creator(self, tmpdir_factory):
run_path = str(tmpdir_factory.mktemp("ansys_pool"))
Expand Down

0 comments on commit ac841bd

Please sign in to comment.