Skip to content

Commit

Permalink
Guard against profiler issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenhater committed Jan 29, 2025
1 parent f11f0d3 commit 57ad45a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/test/unit/test_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def global_properties(self, _):

class TestDelayNetwork(unittest.TestCase):
def test_zero_delay(self):
if A.config()["profiling"]:
A.profiler_clear()

rec = DelayRecipe(0.0 * U.ms)
self.assertRaises(ValueError, A.simulation, rec)
if A.config()["profiling"]:
Expand Down

0 comments on commit 57ad45a

Please sign in to comment.