From: Torsten Werner Date: Sun, 9 Jan 2011 14:05:13 +0000 (+0100) Subject: suppress warnings when running tests in squeeze X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=ae65107dcc00f49c32e7a57f5840c7698b35cc9e;hp=d0c606466fbc892a05b2c551f20539c67ace74f1;p=dak.git suppress warnings when running tests in squeeze Signed-off-by: Torsten Werner --- diff --git a/tests/test_all.py b/tests/test_all.py index 32e58aba..94b89c43 100755 --- a/tests/test_all.py +++ b/tests/test_all.py @@ -3,6 +3,22 @@ import os import unittest +import warnings + +# suppress some deprecation warnings in squeeze related to apt_pkg, +# debian, and md5 modules +warnings.filterwarnings('ignore', \ + "Attribute '.*' of the 'apt_pkg\.Configuration' object is deprecated, use '.*' instead\.", \ + DeprecationWarning) +warnings.filterwarnings('ignore', \ + "apt_pkg\.newConfiguration\(\) is deprecated\. Use apt_pkg\.Configuration\(\) instead\.", \ + DeprecationWarning) +warnings.filterwarnings('ignore', \ + "please use 'debian' instead of 'debian_bundle'", \ + DeprecationWarning) +warnings.filterwarnings('ignore', \ + "the md5 module is deprecated; use hashlib instead", \ + DeprecationWarning) def suite(): suite = unittest.TestSuite()