Suppress another deprecation warning in the tests.
authorTim Peters <tim.peters@gmail.com>
Tue, 21 Feb 2006 03:28:49 +0000 (03:28 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 21 Feb 2006 03:28:49 +0000 (03:28 +0000)
Lib/test/test_rgbimg.py

index 010b3b5fd02aa5467c9c9741047ba88eec72604f..650c02aa0f9a6adc32080ee88b3448a5908c6524 100644 (file)
@@ -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