From 33b584b2c551548021adb92a028ceaf892deb5be Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Fri, 15 Nov 2019 02:27:32 +0000 Subject: [PATCH] Remove unused inner function. (#310) --- test_six.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test_six.py b/test_six.py index 0b7206741..3eefce37c 100644 --- a/test_six.py +++ b/test_six.py @@ -420,14 +420,6 @@ def with_kw(*args, **kw): @pytest.mark.skipif("sys.version_info[:2] < (2, 7)", reason="view methods on dictionaries only available on 2.7+") def test_dictionary_views(): - def stock_method_name(viewwhat): - """Given a method suffix like "keys" or "values", return the name - of the dict method that delivers those on the version of Python - we're running in.""" - if six.PY3: - return viewwhat - return 'view' + viewwhat - d = dict(zip(range(10), (range(11, 20)))) for name in "keys", "values", "items": meth = getattr(six, "view" + name)