]> granicus.if.org Git - python/commitdiff
bpo-30078: Add an example of passing a path to unittest (GH-1178)
authorBerker Peksag <berker.peksag@gmail.com>
Thu, 20 Apr 2017 04:37:18 +0000 (07:37 +0300)
committerGitHub <noreply@github.com>
Thu, 20 Apr 2017 04:37:18 +0000 (07:37 +0300)
(cherry picked from commit f7e62cf8adfb8ab6a6a870903defe8ff218a0383)

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 = """\