From 14a333b9909be5cda38ceca8dd26f2eb2012e77f Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Mon, 22 Jan 2018 17:00:50 +0000 Subject: [PATCH] Clarify about unittest.main(). --- tests/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/__main__.py b/tests/__main__.py index 2e1a0321..93baf17e 100644 --- a/tests/__main__.py +++ b/tests/__main__.py @@ -39,7 +39,9 @@ def convert_argv(argv): help = True args.append(arg) - cmd = [sys.executable + ' -m unittest'] # ...how unittest.main() likes it. + # We make the "executable" a single arg because unittest.main() + # doesn't work if we split it into 3 parts. + cmd = [sys.executable + ' -m unittest'] if not modules and not help: # Do discovery. if quick: