Skip to content

Commit 17b9e14

Browse files
format test whitespace for linter
1 parent 9579c06 commit 17b9e14

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

bpython/test/test_autocomplete.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,24 +157,23 @@ class TestDictKeyCompletion(unittest.TestCase):
157157

158158
def test_set_of_keys_returned_when_matches_found(self):
159159
com = autocomplete.DictKeyCompletion()
160-
local={'d':{"ab":1, "cd":2},}
161-
com.matches(2,"d[" , local)
162-
self.assertSetEqual(com.matches(2,"d[" , local),set(["'ab']","'cd']"]))
160+
local = {'d': {"ab": 1, "cd": 2}}
161+
self.assertSetEqual(com.matches(2, "d[", local), set(["'ab']", "'cd']"]))
163162

164163
def test_empty_set_returned_when_eval_error(self):
165164
com = autocomplete.DictKeyCompletion()
166-
local={'e':{"ab":1, "cd":2},}
167-
self.assertSetEqual(com.matches(2,"d[" , local),set())
165+
local = {'e': {"ab": 1, "cd": 2}}
166+
self.assertSetEqual(com.matches(2, "d[", local), set())
168167

169168
def test_empty_set_returned_when_not_dict_type(self):
170169
com = autocomplete.DictKeyCompletion()
171-
local={'l':["ab", "cd"],}
172-
self.assertSetEqual(com.matches(2,"l[" , local),set())
170+
local = {'l': ["ab", "cd"]}
171+
self.assertSetEqual(com.matches(2, "l[", local),set())
173172

174173
def test_obj_that_does_not_allow_conversion_to_bool(self):
175174
com = autocomplete.DictKeyCompletion()
176-
local={'mNumPy':MockNumPy(),}
177-
self.assertSetEqual(com.matches(7,"mNumPy[" , local), set())
175+
local = {'mNumPy': MockNumPy()}
176+
self.assertSetEqual(com.matches(7, "mNumPy[", local), set())
178177

179178
class Foo(object):
180179
a = 10

0 commit comments

Comments
 (0)