Commit 84093b78 authored by Benoit Pierre's avatar Benoit Pierre

fix `test` command when run with Python 2

When using Python 2, `python2 -m unittest` is not equivalent to
`python2 -m unittest discover`.
parent 403bfce4
......@@ -101,6 +101,8 @@ class test(Command):
return list(self._test_args())
def _test_args(self):
if not self.test_suite:
yield 'discover'
if self.verbose:
yield '--verbose'
if self.test_suite:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment