Skip to content

Commit

Permalink
Set trival_ecs tests to use sys.exit.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjhn committed Oct 24, 2024
1 parent c155dff commit aceb963
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions share/lib/python/neuron/tests/test_rxd.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def scalar_bistable(lock, path=None):
cmpV = h.Vector(test_data["scalar_bistable_data"])
cmpV.sub(result)
cmpV.abs()
if cmpV.sum() < 1e-6:
sys.exit(0)
sys.exit(-1)
if cmpV.sum() >= 1e-6:
sys.exit(-1)
sys.exit(0)


def trivial_ecs(scale, lock, path=None):
Expand Down Expand Up @@ -124,8 +124,8 @@ def trivial_ecs(scale, lock, path=None):
ecs_vec.sub(h.Vector(test_data["trivial_ecs_data"][str(scale)]))
ecs_vec.abs()
if ecs_vec.sum() > 1e-9:
return -1
return 0
sys.exit(-1)
sys.exit(0)


class RxDTestCase(unittest.TestCase):
Expand Down

0 comments on commit aceb963

Please sign in to comment.