]> granicus.if.org Git - python/commitdiff
Shut up warnings about hex()/oct() that can't be avoided.
authorGuido van Rossum <guido@python.org>
Mon, 12 Aug 2002 15:16:20 +0000 (15:16 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 12 Aug 2002 15:16:20 +0000 (15:16 +0000)
Lib/test/test_b1.py
Lib/test/test_b2.py

index 37e7cdf19692dda82450da296f23080336886a11..f8a3f0167b14162624f74c1e49f4d1dd3e5e015c 100644 (file)
@@ -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__'
index b59d3ab6988e60eb60f6c91e13990687fb8655da..d3653a55a80a9256d3270c22cba18c9932d18385 100644 (file)
@@ -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'