From ed8ff9e4e0f00850aadd82d09758ff430794285f Mon Sep 17 00:00:00 2001 From: Brian Granger Date: Sat, 25 Apr 2009 16:09:59 -0700 Subject: [PATCH] Fixing small bug in iptest. Can now be run as "iptest". --- IPython/testing/iptest.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/IPython/testing/iptest.py b/IPython/testing/iptest.py index 1cf805bc5..02aa77a81 100644 --- a/IPython/testing/iptest.py +++ b/IPython/testing/iptest.py @@ -287,10 +287,13 @@ def run_iptestall(): def main(): - if sys.argv[1] == 'all': + if len(sys.argv) == 1: run_iptestall() else: - run_iptest() + if sys.argv[1] == 'all': + run_iptestall() + else: + run_iptest() if __name__ == '__main__':