From 42a3deb7b5bd3d3b072f4bf652c1cc3ebf739807 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 21 Feb 2006 03:28:49 +0000 Subject: [PATCH] Suppress another deprecation warning in the tests. --- Lib/test/test_rgbimg.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_rgbimg.py b/Lib/test/test_rgbimg.py index 010b3b5fd02..650c02aa0f9 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