Skip to content

Commit 255804c

Browse files
author
MarcoGorelli
committed
fixup python files based on new flake8 check
1 parent 6c29b06 commit 255804c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pandas/tests/frame/indexing/test_getitem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ def test_getitem_dupe_cols(self):
115115
iter,
116116
Index,
117117
set,
118-
lambda l: dict(zip(l, range(len(l)))),
119-
lambda l: dict(zip(l, range(len(l)))).keys(),
118+
lambda keys: dict(zip(keys, range(len(keys)))),
119+
lambda keys: dict(zip(keys, range(len(keys)))).keys(),
120120
],
121121
ids=["list", "iter", "Index", "set", "dict", "dict_keys"],
122122
)

pandas/tests/io/json/test_readlines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def test_readjson_chunks_multiple_empty_lines(chunksize):
207207

208208
def test_readjson_unicode(monkeypatch):
209209
with tm.ensure_clean("test.json") as path:
210-
monkeypatch.setattr("locale.getpreferredencoding", lambda l: "cp949")
210+
monkeypatch.setattr("locale.getpreferredencoding", lambda do_setlocale: "cp949")
211211
with open(path, "w", encoding="utf-8") as f:
212212
f.write('{"£©µÀÆÖÞßéöÿ":["АБВГДабвгд가"]}')
213213

pandas/tests/io/pytables/test_round_trip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def test_index_types(setup_path):
302302
with catch_warnings(record=True):
303303
values = np.random.randn(2)
304304

305-
func = lambda l, r: tm.assert_series_equal(l, r, check_index_type=True)
305+
func = lambda lhs, rhs: tm.assert_series_equal(lhs, rhs, check_index_type=True)
306306

307307
with catch_warnings(record=True):
308308
ser = Series(values, [0, "y"])

0 commit comments

Comments
 (0)