Skip to content

Dictionary key completion fails in 2.6 #458

Description

@maryakins
ERROR: test_set_of_keys_returned_when_matches_found (bpython.test.test_autocomplete.TestDictKeyCompletion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/bpython/bpython/build/lib/bpython/test/test_autocomplete.py", line 161, in test_set_of_keys_returned_when_matches_found
    result=com.matches(2,"d[" , local)
  File "/home/travis/build/bpython/bpython/build/lib/bpython/autocomplete.py", line 223, in matches
    return set("{!r}".format(k) for k in obj.keys()
  File "/home/travis/build/bpython/bpython/build/lib/bpython/autocomplete.py", line 224, in <genexpr>
    if repr(k).startswith(orig))
ValueError: zero length field name in format

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions