]> granicus.if.org Git - python/commitdiff
Get rid of deprecation warning when testing commands.getstatus()
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 20 Mar 2007 05:21:21 +0000 (05:21 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 20 Mar 2007 05:21:21 +0000 (05:21 +0000)
Lib/test/test_commands.py

index b72a1b9b6acb74ae0b6f2fb4bb7ab5fd3484965c..d899d6699e1d36e4d2ea6d434d58ec0e17b6e443 100644 (file)
@@ -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 *