mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Replaced 'python -Wall' with 'python -Wa'.
This commit is contained in:
parent
2156565b5b
commit
fbb9358149
3 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue