]> granicus.if.org Git - python/commitdiff
bpo-30078: Add an example of passing a path to unittest (#1178)
authorLouie Lu <me@louie.lu>
Thu, 20 Apr 2017 03:46:59 +0000 (11:46 +0800)
committerBerker Peksag <berker.peksag@gmail.com>
Thu, 20 Apr 2017 03:46:59 +0000 (06:46 +0300)
Lib/unittest/main.py

index 09fefe11649bd3e83b340c6671dce0b211099e62..807604f08dfd141235cfe04a0ee6ff23a0d584da 100644 (file)
@@ -14,6 +14,7 @@ Examples:
   %(prog)s test_module               - run tests from test_module
   %(prog)s module.TestClass          - run tests from module.TestClass
   %(prog)s module.Class.test_method  - run specified test method
+  %(prog)s path/to/test_file.py      - run tests from test_file.py
 """
 
 MODULE_EXAMPLES = """\