summaryrefslogtreecommitdiff
path: root/Lib/test/test_py3kwarn.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-18 02:12:23 +0000
committerBenjamin Peterson <benjamin@python.org>2008-08-18 02:12:23 +0000
commit541f7da3a9ab257688ffbd0ed5cff5596a231e0a (patch)
tree8c8314cfbb80998c3cf9bca5d599ca454f5ef83e /Lib/test/test_py3kwarn.py
parent08336e30adc97345ed1a88ad2a1b9a6f47896fa0 (diff)
downloadcpython-git-541f7da3a9ab257688ffbd0ed5cff5596a231e0a.tar.gz
add a test for reduce's move
Diffstat (limited to 'Lib/test/test_py3kwarn.py')
-rw-r--r--Lib/test/test_py3kwarn.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py
index 340e86f42d..0dac3d043d 100644
--- a/Lib/test/test_py3kwarn.py
+++ b/Lib/test/test_py3kwarn.py
@@ -340,6 +340,12 @@ class TestStdlibRemovals(unittest.TestCase):
func = getattr(commands, name)
self.assertRaises(DeprecationWarning, func, *([None]*arg_count))
+ def test_reduce_move(self):
+ from operator import add
+ with catch_warning(record=False):
+ warnings.filterwarnings("error", "reduce")
+ self.assertRaises(DeprecationWarning, reduce, add, range(10))
+
def test_mutablestring_removal(self):
# UserString.MutableString has been removed in 3.0.
import UserString