From: Benjamin Peterson Date: Thu, 2 Jul 2009 16:51:56 +0000 (+0000) Subject: remove this test; a module level warning is enough X-Git-Tag: v2.7a1~853 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c6de43dd936327ab4c57338c5e20f6e8824e7ee;p=python remove this test; a module level warning is enough --- diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 36c988fdbe..f510d93c11 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -354,17 +354,6 @@ class TestStdlibRemovals(unittest.TestCase): mod.walk("crashers", dumbo, None) self.assertEquals(str(w.message), msg) - def test_commands_members(self): - import commands - # commands module tests may have already triggered this warning - reset_module_registry(commands) - members = {"mk2arg" : 2, "mkarg" : 1, "getstatus" : 1} - for name, arg_count in members.items(): - with warnings.catch_warnings(): - warnings.filterwarnings("error") - func = getattr(commands, name) - self.assertRaises(DeprecationWarning, func, *([None]*arg_count)) - def test_reduce_move(self): from operator import add # reduce tests may have already triggered this warning