[Python-checkins] r42536 - python/trunk/Lib/test/test_rgbimg.py

tim.peters python-checkins at python.org
Tue Feb 21 04:28:51 CET 2006


Author: tim.peters
Date: Tue Feb 21 04:28:49 2006
New Revision: 42536

Modified:
   python/trunk/Lib/test/test_rgbimg.py
Log:
Suppress another deprecation warning in the tests.


Modified: python/trunk/Lib/test/test_rgbimg.py
==============================================================================
--- python/trunk/Lib/test/test_rgbimg.py	(original)
+++ python/trunk/Lib/test/test_rgbimg.py	Tue Feb 21 04:28:49 2006
@@ -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
 


More information about the Python-checkins mailing list