Skip to content

Commit

Permalink
Workaround a test issue for standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Feb 17, 2020
1 parent 7343341 commit 46105c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions brian2modelfitting/tests/test_modelfitting_tracefitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def fin():

@pytest.fixture
def setup_standalone(request):
# Workaround to avoid issues with Network instances still around
Network.__instances__().clear()
set_device('cpp_standalone', directory=None)
dt = 0.01 * ms
tf = TraceFitter(dt=dt,
Expand Down
2 changes: 2 additions & 0 deletions brian2modelfitting/tests/test_simulation_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def fin():

@pytest.fixture()
def setup_standalone(request):
# Workaround to avoid issues with Network instances still around
Network.__instances__().clear()
set_device('cpp_standalone', directory=None)
dt = 0.1 * ms
duration = 10 * ms
Expand Down

0 comments on commit 46105c0

Please sign in to comment.