Chromium Code Reviews| Index: tests/main_test.py |
| diff --git a/tests/main_test.py b/tests/main_test.py |
| index 8fe5462cb312e8750a78900c9351d8597df82434..f64912643055d98d5f5da1c50fd9f561e18db7af 100755 |
| --- a/tests/main_test.py |
| +++ b/tests/main_test.py |
| @@ -359,7 +359,7 @@ class AccessControl(TestCase): |
| if __name__ == '__main__': |
| - logging.basicConfig(level= |
| - [logging.WARNING, logging.INFO, logging.DEBUG][ |
| - min(2, sys.argv.count('-v'))]) |
| + logging.basicConfig(level=[logging.WARNING, logging.INFO, logging.DEBUG][ |
| + min(2, sys.argv.count('-v') + (sys.argv.count('-vv') * 2) + |
| + (sys.argv.count('-vvv') * 3))]) |
|
cmp
2013/11/04 22:27:48
Does optparse natively support this? If it does,
vapier
2013/11/04 22:30:23
shouldn't be hard to rewrite with standard optpars
|
| unittest.main() |