summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@googlemail.com>2012-03-06 14:36:03 -0800
committerRalf Gommers <ralf.gommers@googlemail.com>2012-03-06 14:36:03 -0800
commit8670ca3b83991faf90d57363b551fdc90a196826 (patch)
tree5acac351b3936774282a743fa8c8f58b9638d8d9 /doc
parent7c070892e22d988e663e9b2ec3ba9d60c47696e8 (diff)
parent723303deb2e130ad2226edb3ada7eaa351897542 (diff)
downloadnumpy-8670ca3b83991faf90d57363b551fdc90a196826.tar.gz
Merge pull request #219 from mwiebe/test_warn_param
Add parameters in NoseTester constructor as well as in NoseTester.test() to control which warnings raise an error. An explicit difference is made between the master branch and release branches. This was mentioned on the ML: http://thread.gmane.org/gmane.comp.python.numeric.general/48210
Diffstat (limited to 'doc')
-rw-r--r--doc/HOWTO_RELEASE.rst.txt10
-rw-r--r--doc/TESTS.rst.txt7
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