From: Neal Norwitz Date: Tue, 20 Mar 2007 05:21:21 +0000 (+0000) Subject: Get rid of deprecation warning when testing commands.getstatus() X-Git-Tag: v2.6a1~1967 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c473d5ebabae4375f767ae1125e1b28809d45701;p=python Get rid of deprecation warning when testing commands.getstatus() --- diff --git a/Lib/test/test_commands.py b/Lib/test/test_commands.py index b72a1b9b6a..d899d6699e 100644 --- a/Lib/test/test_commands.py +++ b/Lib/test/test_commands.py @@ -4,6 +4,10 @@ ''' import unittest import os, tempfile, re +import warnings + +warnings.filterwarnings('ignore', r".*commands.getstatus.. is deprecated", + DeprecationWarning) from test.test_support import TestSkipped, run_unittest, reap_children from commands import *