We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c61e613 commit 629105fCopy full SHA for 629105f
1 file changed
test/system/test_nest_nestml.py
@@ -19,7 +19,15 @@
19
20
@pytest.fixture(autouse=True)
21
def reset_nestml_state():
22
- """Reset NESTML module-level state between tests so registrations don't bleed across."""
+ """Reset NESTML module-level state before and after each test.
23
+
24
+ Resets both before (so state left by non-NESTML tests in the same worker doesn't bleed
25
+ in) and after (so state left by this test doesn't bleed into subsequent tests).
26
+ """
27
+ if have_nest:
28
+ from pyNN.nest import nestml
29
+ nestml._compiled = False
30
+ nestml._pending.clear()
31
yield
32
if have_nest:
33
from pyNN.nest import nestml
0 commit comments