From: Tim Peters Date: Tue, 21 Feb 2006 03:28:49 +0000 (+0000) Subject: Suppress another deprecation warning in the tests. X-Git-Tag: v2.5a0~564 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42a3deb7b5bd3d3b072f4bf652c1cc3ebf739807;p=thirdparty%2FPython%2Fcpython.git Suppress another deprecation warning in the tests. --- diff --git a/Lib/test/test_rgbimg.py b/Lib/test/test_rgbimg.py index 010b3b5fd02a..650c02aa0f9a 100644 --- a/Lib/test/test_rgbimg.py +++ b/Lib/test/test_rgbimg.py @@ -1,6 +1,13 @@ # Testing rgbimg module -import rgbimg, os, uu +import warnings +warnings.filterwarnings("ignore", + "the rgbimg module is deprecated", + DeprecationWarning, + ".*test_rgbimg$") +import rgbimg + +import os, uu from test.test_support import verbose, unlink, findfile