From d7b6659f644556464c6b5a7b7a5b81adc12c8b9c 2013-09-19 22:21:13 From: Thomas Kluyver Date: 2013-09-19 22:21:13 Subject: [PATCH] Simplify parsing -j arg --- diff --git a/IPython/testing/iptestcontroller.py b/IPython/testing/iptestcontroller.py index 8fca6fc..5e274b4 100644 --- a/IPython/testing/iptestcontroller.py +++ b/IPython/testing/iptestcontroller.py @@ -387,7 +387,7 @@ def main(): 'all tests.') parser.add_argument('--all', action='store_true', help='Include slow tests not run by default.') - parser.add_argument('-j', '--fast', nargs='?', const=None, default=1, + parser.add_argument('-j', '--fast', nargs='?', const=None, default=1, type=int, help='Run test sections in parallel.') parser.add_argument('--xunit', action='store_true', help='Produce Xunit XML results') @@ -397,12 +397,6 @@ def main(): options = parser.parse_args() - try: - options.fast = int(options.fast) - except TypeError: - pass - - # This starts subprocesses run_iptestall(options)