diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/HOWTO_RELEASE.rst.txt | 10 | ||||
-rw-r--r-- | doc/TESTS.rst.txt | 7 |
2 files changed, 10 insertions, 7 deletions
diff --git a/doc/HOWTO_RELEASE.rst.txt b/doc/HOWTO_RELEASE.rst.txt index c31201801..50b82ac8b 100644 --- a/doc/HOWTO_RELEASE.rst.txt +++ b/doc/HOWTO_RELEASE.rst.txt @@ -187,6 +187,16 @@ Check the buildbot ------------------ The buildbot is located at `<http://buildbot.scipy.org/>`_. +Handle test warnings +-------------------- +The default behavior of the test suite in the master branch is to report errors +for DeprecationWarnings and RuntimeWarnings that are issued. For a released +version this is not desired. Therefore any known warnings should be solved or +explicitly silenced before making the release branch, then when the branch is +made, the default behavior should be switched to not raise errors. This is +done in the constructor of the NoseTester class in numpy/testing/nosetester.py, +by replacing ``raise_warnings="develop"`` with ``raise_warnings="release"``. + Make sure current trunk builds a package correctly -------------------------------------------------- :: diff --git a/doc/TESTS.rst.txt b/doc/TESTS.rst.txt index a192a32b7..a6387d7b2 100644 --- a/doc/TESTS.rst.txt +++ b/doc/TESTS.rst.txt @@ -41,13 +41,6 @@ follows:: >>> import numpy >>> numpy.test() -Note that for Python >= 2.7 deprecation warnings are silent by default. They -can be turned on (recommended after installation and before upgrading) by -starting the interpreter with the -Wd switch, or by:: - - >>> import warnings - >>> warnings.simplefilter('always', DeprecationWarning) - The test method may take two or more arguments; the first is a string label specifying what should be tested and the second is an integer giving the level of output verbosity. See the docstring for numpy.test |