diff -r 0d209cc7ffdc Lib/test/libregrtest/cmdline.py --- a/Lib/test/libregrtest/cmdline.py Mon Dec 12 16:45:21 2016 -0500 +++ b/Lib/test/libregrtest/cmdline.py Tue Dec 13 11:14:35 2016 +0800 @@ -301,9 +301,9 @@ if ns.single and ns.fromfile: parser.error("-s and -f don't go together!") - if ns.use_mp and ns.trace: + if ns.use_mp is not None and ns.trace: parser.error("-T and -j don't go together!") - if ns.use_mp and ns.findleaks: + if ns.use_mp is not None and ns.findleaks: parser.error("-l and -j don't go together!") if ns.failfast and not (ns.verbose or ns.verbose3): parser.error("-G/--failfast needs either -v or -W") diff -r 0d209cc7ffdc Lib/test/test_regrtest.py --- a/Lib/test/test_regrtest.py Mon Dec 12 16:45:21 2016 -0500 +++ b/Lib/test/test_regrtest.py Tue Dec 13 11:14:35 2016 +0800 @@ -226,6 +226,8 @@ self.checkError([opt, 'foo'], 'invalid int value') self.checkError([opt, '2', '-T'], "don't go together") self.checkError([opt, '2', '-l'], "don't go together") + self.checkError([opt, '0', '-T'], "don't go together") + self.checkError([opt, '0', '-l'], "don't go together") def test_coverage(self): for opt in '-T', '--coverage':