[Python-checkins] r73773 - python/trunk/Lib/test/test_py3kwarn.py
benjamin.peterson
python-checkins at python.org
Thu Jul 2 18:51:56 CEST 2009
Author: benjamin.peterson
Date: Thu Jul 2 18:51:56 2009
New Revision: 73773
Log:
remove this test; a module level warning is enough
Modified:
python/trunk/Lib/test/test_py3kwarn.py
Modified: python/trunk/Lib/test/test_py3kwarn.py
==============================================================================
--- python/trunk/Lib/test/test_py3kwarn.py (original)
+++ python/trunk/Lib/test/test_py3kwarn.py Thu Jul 2 18:51:56 2009
@@ -354,17 +354,6 @@
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
More information about the Python-checkins
mailing list