File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,19 @@ path to the test case::
50
50
51
51
./python -m unittest -v test.test_abc.TestABC_Py
52
52
53
+ Some test modules also support direct invocation,
54
+ which might be useful for IDEs and local debugging::
55
+
56
+ ./python Lib/test/test_typing.py
57
+
58
+ But, there are several important notes:
59
+
60
+ 1. This way of running tests exists only
61
+ for local developer needs and is discouraged for anything else
62
+ 2. Some modules do not support it at all. One example is``test_importlib``.
63
+ In other words: if some module does not have ``unittest.main() ``, then
64
+ most likely it does not support direct invocation.
65
+
53
66
If you have a multi-core or multi-CPU machine, you can enable parallel testing
54
67
using several Python processes so as to speed up things::
55
68
You can’t perform that action at this time.
0 commit comments