summaryrefslogtreecommitdiff
path: root/docs/howto/upgrade-version.txt
diff options
context:
space:
mode:
authorDaniel Chimeno <daniel@chimeno.me>2018-03-28 19:25:03 +0200
committerTim Graham <timograham@gmail.com>2018-03-28 13:25:03 -0400
commitfbb93581498070272dd67c6e0afbca13cb89d5f3 (patch)
tree0cdd300c628bfd76b1e76c253b3654e58dbe1391 /docs/howto/upgrade-version.txt
parent2156565b5bac2e6f503ad4841e2b6ed44e4de656 (diff)
Replaced 'python -Wall' with 'python -Wa'.
Diffstat (limited to 'docs/howto/upgrade-version.txt')
-rw-r--r--docs/howto/upgrade-version.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/howto/upgrade-version.txt b/docs/howto/upgrade-version.txt
index 9cd52d7a99..d5bfeff3eb 100644
--- a/docs/howto/upgrade-version.txt
+++ b/docs/howto/upgrade-version.txt
@@ -59,12 +59,12 @@ warnings before upgrading ensures that you're informed about areas of the code
that need altering.
In Python, deprecation warnings are silenced by default. You must turn them on
-using the ``-Wall`` Python command line option or the :envvar:`PYTHONWARNINGS`
+using the ``-Wa`` Python command line option or the :envvar:`PYTHONWARNINGS`
environment variable. For example, to show warnings while running tests:
.. console::
- $ python -Wall manage.py test
+ $ python -Wa manage.py test
If you're not using the Django test runner, you may need to also ensure that
any console output is not captured which would hide deprecation warnings. For
@@ -72,7 +72,7 @@ example, if you use `py.test`:
.. code-block:: console
- $ PYTHONWARNINGS=all py.test tests --capture=no
+ $ PYTHONWARNINGS=always py.test tests --capture=no
Resolve any deprecation warnings with your current version of Django before
continuing the upgrade process.
@@ -108,7 +108,7 @@ use the flag if you test your app manually using ``manage.py runserver``):
.. console::
- $ python -Wall manage.py test
+ $ python -Wa manage.py test
After you have run the tests, fix any failures. While you have the release
notes fresh in your mind, it may also be a good time to take advantage of new