Skip to content

Commit

Permalink
Fix memory leak in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Jan 16, 2024
1 parent 951618a commit 80bce27
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions python/tests/test_swig_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,6 @@ def test_solver_repr():
for s in (solver, solver_ptr):
assert "maxsteps" in str(s)
assert "maxsteps" in repr(s)
# avoid double delete!!
solver_ptr.release()


def test_edata_repr():
Expand All @@ -448,8 +446,6 @@ def test_edata_repr():
for expected_str in expected_strs:
assert expected_str in str(e)
assert expected_str in repr(e)
# avoid double delete!!
edata_ptr.release()


def test_edata_equality_operator():
Expand Down

0 comments on commit 80bce27

Please sign in to comment.