Skip to content

Commit

Permalink
TST: report the exit code on pandas.test() exit
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed Mar 16, 2017
1 parent acb9d01 commit 61f6f63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/util/_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Entrypoint for testing from the top-level namespace
"""
import os
import sys

PKG = os.path.dirname(os.path.dirname(__file__))

Expand All @@ -20,7 +21,7 @@ def test(extra_args=None):
cmd = extra_args
cmd += [PKG]
print("running: pytest {}".format(' '.join(cmd)))
pytest.main(cmd)
sys.exit(pytest.main(cmd))


__all__ = ['test']

0 comments on commit 61f6f63

Please sign in to comment.