summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2017-04-20 04:37:18 (GMT)
committerGitHub <noreply@github.com>2017-04-20 04:37:18 (GMT)
commit6fb0f801d73b1e2794888772d016d978eccf52a6 (patch)
tree9ed6f14696fd8c446905724046e0abb9fa0039a1
parent7e56fe35efe3aef0b9aac989255c4f13dfc01b09 (diff)
downloadcpython-6fb0f801d73b1e2794888772d016d978eccf52a6.zip
cpython-6fb0f801d73b1e2794888772d016d978eccf52a6.tar.gz
cpython-6fb0f801d73b1e2794888772d016d978eccf52a6.tar.bz2
bpo-30078: Add an example of passing a path to unittest (GH-1178)
(cherry picked from commit f7e62cf8adfb8ab6a6a870903defe8ff218a0383)
-rw-r--r--Lib/unittest/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/unittest/main.py b/Lib/unittest/main.py
index 09fefe1..807604f 100644
--- a/Lib/unittest/main.py
+++ b/Lib/unittest/main.py
@@ -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 = """\