X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=tests%2Ftest_all.py;fp=tests%2Ftest_all.py;h=94b89c4305285fe1c5cd7508674acf4fc7d8bc0f;hb=ae65107dcc00f49c32e7a57f5840c7698b35cc9e;hp=32e58ababa59dbd658a194357b51ea32166f9bcf;hpb=d0c606466fbc892a05b2c551f20539c67ace74f1;p=dak.git 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()