Skip to content

Commit

Permalink
Remove unused inner function. (benjaminp#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored and benjaminp committed Nov 15, 2019
1 parent 4309e80 commit 33b584b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test_six.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 33b584b

Please sign in to comment.