Skip to content

Commit 1d03d7a

Browse files
author
Kevin Kuhl
committed
remove bad dev deps. fix tempfile context in tests
1 parent 38f043b commit 1d03d7a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ci/requirements_dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ pytest>=3.1.0
66
pytest-cov
77
flake8
88
s3fs
9-
moto

pandas/tests/io/json/test_pandas.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,9 +1023,10 @@ def test_read_s3_jsonl(self, testbucket_conn):
10231023

10241024
def test_read_local_jsonl(self):
10251025
# GH17200
1026-
with ensure_clean('tmp_items.json') as infile:
1027-
infile.write('{"a": 1, "b": 2}\n{"b":2, "a" :1}\n')
1028-
result = read_json(fname, lines=True)
1026+
with ensure_clean('tmp_items.json') as path:
1027+
with open(path, 'w') as infile:
1028+
infile.write('{"a": 1, "b": 2}\n{"b":2, "a" :1}\n')
1029+
result = read_json(path, lines=True)
10291030
expected = DataFrame([[1, 2], [1, 2]], columns=['a', 'b'])
10301031
assert_frame_equal(result, expected)
10311032

0 commit comments

Comments
 (0)