Skip to content

Commit

Permalink
Tests: Silence Django deprecation warnings
Browse files Browse the repository at this point in the history
We can get rid of those once we drop support for Django 1.11.

See #2201

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jan 13, 2020
1 parent 9609734 commit aabee39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/lib
Expand Up @@ -11,7 +11,8 @@ check() {
}

run_coverage() {
python -W default -W ignore:unclosed:ResourceWarning -m coverage run --source . --append "$@"
# PendingDeprecationWarning is needed as long as we support Django 1.11
python -W default -W ignore:unclosed:ResourceWarning -W ignore::PendingDeprecationWarning -m coverage run --source . --append "$@"
}

cleanup_database() {
Expand Down

0 comments on commit aabee39

Please sign in to comment.