From 3c954b62643a3c645d7172b47b0582599606cc29 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 25 Aug 2011 15:35:53 -0700 Subject: [PATCH] Enable -Wd for tests, so DeprecationWarning works DeprecationWarning is suppressed by default since Python 2.7, so it's a good idea to explicitly enable it for tests. --- pym/portage/tests/runTests | 2 +- runtests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/tests/runTests b/pym/portage/tests/runTests index 6b3311d28..146f7d4ac 100755 --- a/pym/portage/tests/runTests +++ b/pym/portage/tests/runTests @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python -Wd # runTests.py -- Portage Unit Test Functionality # Copyright 2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 diff --git a/runtests.sh b/runtests.sh index 11aec60f5..981fa1ec2 100755 --- a/runtests.sh +++ b/runtests.sh @@ -28,7 +28,7 @@ exit_status="0" for version in ${PYTHON_VERSIONS}; do if [[ -x /usr/bin/python${version} ]]; then echo -e "${GOOD}Testing with Python ${version}...${NORMAL}" - if ! /usr/bin/python${version} pym/portage/tests/runTests "$@" ; then + if ! /usr/bin/python${version} -Wd pym/portage/tests/runTests "$@" ; then echo -e "${BAD}Testing with Python ${version} failed${NORMAL}" exit_status="1" fi -- 2.26.2