提交 ae65107d 编写于 作者: T Torsten Werner

suppress warnings when running tests in squeeze

Signed-off-by: NTorsten Werner <twerner@debian.org>
上级 d0c60646
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册