Skip to content

Commit

Permalink
Make the test check that the return code is propagated
Browse files Browse the repository at this point in the history
  • Loading branch information
dturner-tw committed Mar 20, 2015
1 parent 807b881 commit 78ffe85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/python/pants_test/python/die.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@


if __name__ == "__main__":
print('Exiting with status 1')
sys.exit(1)
print('Exiting with status 57')
sys.exit(57)
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_die(self):
'--interpreter=CPython>=3.3',
'--quiet']
pants_run = self.run_pants(command=command)
assert pants_run.returncode == 1
assert pants_run.returncode == 57

def _maybe_run_version(self, version):
if self.has_python_version(version):
Expand Down

0 comments on commit 78ffe85

Please sign in to comment.