From: Guido van Rossum Date: Mon, 12 Aug 2002 15:16:20 +0000 (+0000) Subject: Shut up warnings about hex()/oct() that can't be avoided. X-Git-Tag: v2.3c1~4532 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=baf29638dafbfdd61452dd4dc64395ed63bc007d;p=thirdparty%2FPython%2Fcpython.git Shut up warnings about hex()/oct() that can't be avoided. --- diff --git a/Lib/test/test_b1.py b/Lib/test/test_b1.py index 37e7cdf19692..f8a3f0167b14 100644 --- a/Lib/test/test_b1.py +++ b/Lib/test/test_b1.py @@ -1,5 +1,9 @@ # Python test set -- part 4a, built-in functions a-m +import warnings +warnings.filterwarnings("ignore", "hex../oct.. of negative int", + DeprecationWarning, __name__) + from test.test_support import TestFailed, fcmp, have_unicode, TESTFN, unlink print '__import__' diff --git a/Lib/test/test_b2.py b/Lib/test/test_b2.py index b59d3ab6988e..d3653a55a80a 100644 --- a/Lib/test/test_b2.py +++ b/Lib/test/test_b2.py @@ -1,5 +1,9 @@ # Python test set -- part 4b, built-in functions n-z +import warnings +warnings.filterwarnings("ignore", "hex../oct.. of negative int", + DeprecationWarning, __name__) + from test.test_support import TestFailed, fcmp, TESTFN, unlink, vereq print 'oct'