diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-06-08 23:00:00 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-06-08 23:00:00 (GMT) |
commit | f4fcdb6b8c0ee8bc4d2eee5ea3b848a4cd905ad6 (patch) | |
tree | 48d3512e81c0fe025d864ec2790d55a059aeeda1 /Lib | |
parent | d5efd2040642d08e64011fb6e81193002269aad4 (diff) | |
download | cpython-f4fcdb6b8c0ee8bc4d2eee5ea3b848a4cd905ad6.zip cpython-f4fcdb6b8c0ee8bc4d2eee5ea3b848a4cd905ad6.tar.gz cpython-f4fcdb6b8c0ee8bc4d2eee5ea3b848a4cd905ad6.tar.bz2 |
warn about parameter tuple unpacking
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_py3kwarn.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 18298fe..768be28 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -173,6 +173,12 @@ class TestPy3KWarnings(unittest.TestCase): with catch_warning() as w: self.assertWarning(set(), w, expected) + def test_tuple_parameter_unpacking(self): + expected = "tuple parameter unpacking has been removed in 3.x" + with catch_warning() as w: + exec "def f((a, b)): pass" + self.assertWarning(None, w, expected) + def test_buffer(self): expected = 'buffer() not supported in 3.x; use memoryview()' with catch_warning() as w: |