diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-10-30 04:20:23 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-10-30 04:20:23 (GMT) |
commit | b8c5f54248369ff89575c1416a98e13e718a4aa4 (patch) | |
tree | ec20c6bef4bf967d94100a25c64399e3f18d4a7e /Doc/library/unittest.rst | |
parent | 5c6793394066b012b9674681b0815667938ce4d9 (diff) | |
download | cpython-b8c5f54248369ff89575c1416a98e13e718a4aa4.zip cpython-b8c5f54248369ff89575c1416a98e13e718a4aa4.tar.gz cpython-b8c5f54248369ff89575c1416a98e13e718a4aa4.tar.bz2 |
Issue #26638: Work around more CLI options that can’t be linked
* Cannot seem to link directly to main options from the “unittest” module,
because that module has its own set of options
* Mask out linking for options that no longer exist in Python 3
Diffstat (limited to 'Doc/library/unittest.rst')
-rw-r--r-- | Doc/library/unittest.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index b9b339b..ac1224c 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -1972,7 +1972,8 @@ Loading and running tests methods <deprecated-aliases>` are also special-cased and, when the warning filters are ``'default'`` or ``'always'``, they will appear only once per-module, in order to avoid too many warning messages. This behavior can - be overridden using the :option:`-Wd` or :option:`-Wa` options and leaving + be overridden using Python's :option:`!-Wd` or :option:`!-Wa` options + (see :ref:`Warning control <using-on-warnings>`) and leaving *warnings* to ``None``. .. versionchanged:: 3.2 @@ -2053,7 +2054,8 @@ Loading and running tests The *warnings* argument specifies the :ref:`warning filter <warning-filter>` that should be used while running the tests. If it's not specified, it will - remain ``None`` if a :option:`-W` option is passed to :program:`python`, + remain ``None`` if a :option:`!-W` option is passed to :program:`python` + (see :ref:`Warning control <using-on-warnings>`), otherwise it will be set to ``'default'``. Calling ``main`` actually returns an instance of the ``TestProgram`` class. |