Permalink
Browse files

DOC: recommend to turn on deprecation warnings for Python >= 2.7.

This was brought up on the mailing list on 10 Sep 2010.
  • Loading branch information...
1 parent 658a1dc commit 6cd460c0615066b33b8d36a4fc8c872b415851fc @rgommers rgommers committed Oct 16, 2010
Showing with 13 additions and 0 deletions.
  1. +6 −0 README.txt
  2. +7 −0 doc/TESTS.txt
View
@@ -16,6 +16,12 @@ After installation, tests can be run with:
python -c 'import numpy; numpy.test()'
+When installing a new version of numpy for the first time or before upgrading
+to a newer version, it is recommended to turn on deprecation warnings when
+running the tests:
+
+python -Wd -c 'import numpy; numpy.test()'
+
The most current development version is always available from our
git repository:
View
@@ -41,6 +41,13 @@ 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
+ >>> wwarnings.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

0 comments on commit 6cd460c

Please sign in to comment.