mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
remove this test; a module level warning is enough
This commit is contained in:
parent
869321484d
commit
0c6de43dd9
1 changed files with 0 additions and 11 deletions
|
@ -354,17 +354,6 @@ class TestStdlibRemovals(unittest.TestCase):
|
||||||
mod.walk("crashers", dumbo, None)
|
mod.walk("crashers", dumbo, None)
|
||||||
self.assertEquals(str(w.message), msg)
|
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):
|
def test_reduce_move(self):
|
||||||
from operator import add
|
from operator import add
|
||||||
# reduce tests may have already triggered this warning
|
# reduce tests may have already triggered this warning
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue