diff options
author | Thomas Grainger <tagrain@gmail.com> | 2019-11-15 02:27:32 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2019-11-14 18:27:32 -0800 |
commit | 33b584b2c551548021adb92a028ceaf892deb5be (patch) | |
tree | 3797d8dea229401b8da2b49a3bfac8f4b4441d88 | |
parent | 4309e8058147dd235c60b04d98afa3891bef014a (diff) | |
download | six-git-33b584b2c551548021adb92a028ceaf892deb5be.tar.gz |
Remove unused inner function. (#310)
-rw-r--r-- | test_six.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test_six.py b/test_six.py index 0b72067..3eefce3 100644 --- a/test_six.py +++ b/test_six.py @@ -420,14 +420,6 @@ def test_dictionary_iterators(monkeypatch): @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) |