Skip to content

Commit

Permalink
More descriptive error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Jul 6, 2016
1 parent 0c151c3 commit f7f8468
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nose/test_orbit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2804,7 +2804,7 @@ def test_orbit_c_sigint_full():
os.kill(p.pid,signal.SIGINT)
time.sleep(4)
if p.poll() is None or p.poll() != 1:
raise AssertionError("Full orbit integration using %s should have been interrupted by SIGINT (CTRL-C), but was not" % integrator)
raise AssertionError("Full orbit integration using %s should have been interrupted by SIGINT (CTRL-C), but was not because p.poll() == %i" % (integrator,p.poll()))
return None

# Test that orbit integration in C gets interrupted by SIGINT (CTRL-C)
Expand All @@ -2823,7 +2823,7 @@ def test_orbit_c_sigint_planar():
os.kill(p.pid,signal.SIGINT)
time.sleep(4)
if p.poll() is None or p.poll() != 1:
raise AssertionError("Planar orbit integration using %s should have been interrupted by SIGINT (CTRL-C), but was not" % integrator)
raise AssertionError("Full orbit integration using %s should have been interrupted by SIGINT (CTRL-C), but was not because p.poll() == %i" % (integrator,p.poll()))
return None

# Test that orbit integration in C gets interrupted by SIGINT (CTRL-C)
Expand All @@ -2839,7 +2839,7 @@ def test_orbit_c_sigint_planardxdv():
os.kill(p.pid,signal.SIGINT)
time.sleep(4)
if p.poll() is None or p.poll() != 1:
raise AssertionError("Planar dxdv orbit integration using %s should have been interrupted by SIGINT (CTRL-C), but was not" % integrator)
raise AssertionError("Full orbit integration using %s should have been interrupted by SIGINT (CTRL-C), but was not because p.poll() == %i" % (integrator,p.poll()))
return None

def test_linear_plotting():
Expand Down

0 comments on commit f7f8468

Please sign in to comment.