resetwarnings() calls too.
check_all("webbrowser")
check_all("xdrlib")
check_all("zipfile")
+
+warnings.resetwarnings()
import copy
import sys
+import warnings
# Fake a number that implements numeric methods through __coerce__
class CoerceNumber:
else:
print '=', x
-do_infix_binops()
-do_prefix_binops()
+warnings.filterwarnings("ignore",
+ r'complex divmod\(\), // and % are deprecated',
+ DeprecationWarning)
+try:
+ do_infix_binops()
+ do_prefix_binops()
+finally:
+ warnings.resetwarnings()
import warnings
warnings.filterwarnings("ignore", ".* xmllib .* obsolete.*",
DeprecationWarning)
-del warnings
import test_support
import unittest
def test_main():
test_support.run_unittest(XMLParserTestCase)
+ warnings.resetwarnings()
if __name__ == "__main__":